server/test/unittest_rql2sql.py
branchstable
changeset 7396 8345ee2c2ea6
parent 7357 5ad3154a8810
child 7397 6a9e66d788b3
child 7421 5115daeeb2ff
--- a/server/test/unittest_rql2sql.py	Thu May 19 09:43:23 2011 +0200
+++ b/server/test/unittest_rql2sql.py	Thu May 19 10:35:20 2011 +0200
@@ -631,7 +631,12 @@
     ("Personne X,Y where X nom NX, Y nom NX, X eid XE, not Y eid XE",
      '''SELECT _X.cw_eid, _Y.cw_eid
 FROM cw_Personne AS _X, cw_Personne AS _Y
-WHERE _Y.cw_nom=_X.cw_nom AND NOT (_Y.cw_eid=_X.cw_eid)''')
+WHERE _Y.cw_nom=_X.cw_nom AND NOT (_Y.cw_eid=_X.cw_eid)'''),
+
+    ('Any X,Y WHERE X is Personne, Y is Personne, X nom XD, Y nom XD, X eid Z, Y eid > Z',
+     '''SELECT _X.cw_eid, _Y.cw_eid
+FROM cw_Personne AS _X, cw_Personne AS _Y
+WHERE _Y.cw_nom=_X.cw_nom AND _Y.cw_eid>_X.cw_eid'''),
     ]