server/sources/rql2sql.py
branchstable
changeset 5702 9fb240cf0f61
parent 5662 785837baabba
child 5706 c2e8290bc7b7
equal deleted inserted replaced
5701:41119f034735 5702:9fb240cf0f61
  1024             lhs, rhs = cmp.children
  1024             lhs, rhs = cmp.children
  1025         else:
  1025         else:
  1026             lhs = None
  1026             lhs = None
  1027             rhs = cmp.children[0]
  1027             rhs = cmp.children[0]
  1028         operator = cmp.operator
  1028         operator = cmp.operator
  1029         if operator in ('IS', 'LIKE', 'ILIKE'):
  1029         if operator in ('LIKE', 'ILIKE'):
  1030             if operator == 'ILIKE' and not self.dbhelper.ilike_support:
  1030             if operator == 'ILIKE' and not self.dbhelper.ilike_support:
  1031                 operator = ' LIKE '
  1031                 operator = ' LIKE '
  1032             else:
  1032             else:
  1033                 operator = ' %s ' % operator
  1033                 operator = ' %s ' % operator
  1034         elif (operator == '=' and isinstance(rhs, Constant)
  1034         elif (operator == '=' and isinstance(rhs, Constant)