server/sources/rql2sql.py
branchstable
changeset 4121 09622a18501c
parent 4114 a75a6e770717
child 4124 8f2f5f0a89e7
equal deleted inserted replaced
4120:21517d42f2ed 4121:09622a18501c
   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         elif constant.type == 'Password' or constant.type == 'Bytes':
       
   999             value = self.dbms_helper.binary_value(value)
       
  1000         elif constant.type == 'Substitute':
       
  1001             _id = constant.value
   998             _id = constant.value
  1002             if isinstance(_id, unicode):
   999             if isinstance(_id, unicode):
  1003                 _id = _id.encode()
  1000                 _id = _id.encode()
  1004         else:
  1001         else:
  1005             _id = str(id(constant)).replace('-', '', 1)
  1002             _id = str(id(constant)).replace('-', '', 1)