server/test/unittest_rql2sql.py
branchstable
changeset 9769 d3f8866a48f5
parent 9361 0542a85fe667
parent 9678 c34f0cee89b7
child 10475 a1e8dbb7215b
--- a/server/test/unittest_rql2sql.py	Thu Jun 05 16:15:29 2014 +0200
+++ b/server/test/unittest_rql2sql.py	Tue Jun 10 09:35:26 2014 +0200
@@ -1882,12 +1882,12 @@
         for t in self._parse([("Any X WHERE X creation_date TODAY, X is Affaire",
                         '''SELECT _X.cw_eid
 FROM cw_Affaire AS _X
-WHERE DATE(_X.cw_creation_date)=CURRENT_DATE'''),
+WHERE DATE(_X.cw_creation_date)=%s''' % self.dbhelper.sql_current_date()),
 
                        ("Personne P where not P datenaiss TODAY",
                         '''SELECT _P.cw_eid
 FROM cw_Personne AS _P
-WHERE NOT (DATE(_P.cw_datenaiss)=CURRENT_DATE)'''),
+WHERE NOT (DATE(_P.cw_datenaiss)=%s)''' % self.dbhelper.sql_current_date()),
                        ]):
             yield t