equal
deleted
inserted
replaced
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) |