server/sources/rql2sql.py
branchstable
changeset 3787 82bb2c7f083b
parent 3762 e416186fb91c
child 3815 50b87f759b5d
equal deleted inserted replaced
3786:11d98118f0eb 3787:82bb2c7f083b
   931             not_ = False
   931             not_ = False
   932         return self.dbms_helper.fti_restriction_sql(alias, const.eval(self._args),
   932         return self.dbms_helper.fti_restriction_sql(alias, const.eval(self._args),
   933                                                     jointo, not_) + restriction
   933                                                     jointo, not_) + restriction
   934 
   934 
   935     def visit_comparison(self, cmp, contextrels=None):
   935     def visit_comparison(self, cmp, contextrels=None):
   936         """generate SQL for a comparaison"""
   936         """generate SQL for a comparison"""
   937         if len(cmp.children) == 2:
   937         if len(cmp.children) == 2:
   938             # XXX occurs ?
   938             # XXX occurs ?
   939             lhs, rhs = cmp.children
   939             lhs, rhs = cmp.children
   940         else:
   940         else:
   941             lhs = None
   941             lhs = None