server/sources/rql2sql.py
branchstable
changeset 4124 8f2f5f0a89e7
parent 4121 09622a18501c
child 4212 ab6573088b4a
equal deleted inserted replaced
4121:09622a18501c 4124:8f2f5f0a89e7
   993             if rel is not None:
   993             if rel is not None:
   994                 rel._q_needcast = value
   994                 rel._q_needcast = value
   995             return self.keyword_map[value]()
   995             return self.keyword_map[value]()
   996         if constant.type == 'Boolean':
   996         if constant.type == 'Boolean':
   997             value = self.dbms_helper.boolean_value(value)
   997             value = self.dbms_helper.boolean_value(value)
       
   998         if constant.type == 'Substitute':
   998             _id = constant.value
   999             _id = constant.value
   999             if isinstance(_id, unicode):
  1000             if isinstance(_id, unicode):
  1000                 _id = _id.encode()
  1001                 _id = _id.encode()
  1001         else:
  1002         else:
  1002             _id = str(id(constant)).replace('-', '', 1)
  1003             _id = str(id(constant)).replace('-', '', 1)