server/sources/rql2sql.py
branchtls-sprint
changeset 1134 f885df228fc0
parent 438 69b79faefa94
child 1263 01152fffd593
--- a/server/sources/rql2sql.py	Mon Mar 23 18:13:34 2009 +0100
+++ b/server/sources/rql2sql.py	Mon Mar 23 18:20:23 2009 +0100
@@ -488,8 +488,7 @@
                 sql.insert(1, 'FROM (SELECT 1) AS _T')
             sqls.append('\n'.join(sql))
         if select.need_intersect:
-            # XXX use getattr for lgc bw compat, remove once 0.37.3 is out
-            if distinct or not getattr(self.dbms_helper, 'intersect_all_support', True):
+            if distinct or not self.dbms_helper.intersect_all_support:
                 return '\nINTERSECT\n'.join(sqls)
             else:
                 return '\nINTERSECT ALL\n'.join(sqls)