fix regression w/ NOT symetric relation (distinct not needed) stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 09 Jul 2009 16:14:22 +0200
branchstable
changeset 2353 b11f1068a0d3
parent 2352 734eb79680e9
child 2354 9b4bac626977
fix regression w/ NOT symetric relation (distinct not needed)
server/rqlannotation.py
--- a/server/rqlannotation.py	Thu Jul 09 14:58:55 2009 +0200
+++ b/server/rqlannotation.py	Thu Jul 09 16:14:22 2009 +0200
@@ -22,7 +22,7 @@
     has_text_query = False
     need_distinct = rqlst.distinct
     for rel in rqlst.iget_nodes(Relation):
-        if getrschema(rel.r_type).symetric:
+        if getrschema(rel.r_type).symetric and not rel.neged(strict=True):
             for vref in rel.iget_nodes(VariableRef):
                 stinfo = vref.variable.stinfo
                 if not stinfo['constnode'] and stinfo['selected']: