[test] having two eid relations is now forbiden by rql stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 24 Mar 2010 15:21:21 +0100
branchstable
changeset 4998 924f8274a264
parent 4997 aed7bdb9da54
child 4999 221f76e14eea
[test] having two eid relations is now forbiden by rql
server/test/unittest_rql2sql.py
--- a/server/test/unittest_rql2sql.py	Wed Mar 24 15:09:49 2010 +0100
+++ b/server/test/unittest_rql2sql.py	Wed Mar 24 15:21:21 2010 +0100
@@ -543,13 +543,10 @@
 ORDER BY 4 DESC'''),
 
 
-    ("Any X WHERE X eid 0, X eid 0",
-     '''SELECT 0'''),
-
-    ("Any X WHERE X eid 0, X eid 0, X test TRUE",
+    ("Any X WHERE X eid 0, X test TRUE",
      '''SELECT _X.cw_eid
 FROM cw_Personne AS _X
-WHERE _X.cw_eid=0 AND _X.cw_eid=0 AND _X.cw_test=TRUE'''),
+WHERE _X.cw_eid=0 AND _X.cw_test=TRUE'''),
 
     ("Any X,GROUP_CONCAT(TN) GROUPBY X ORDERBY XN WHERE T tags X, X name XN, T name TN, X is CWGroup",
      '''SELECT _X.cw_eid, GROUP_CONCAT(_T.cw_name)