branch | stable |
changeset 8245 | d53762ae5961 |
parent 8217 | 0a467663c3fe |
child 8457 | 69ad9a509bc3 |
--- a/server/test/unittest_rql2sql.py Fri Feb 17 14:41:28 2012 +0100 +++ b/server/test/unittest_rql2sql.py Mon Feb 20 11:32:06 2012 +0100 @@ -1744,6 +1744,9 @@ GROUP BY CAST(EXTRACT(YEAR from _X.cw_modification_date) AS INTEGER),CAST(EXTRACT(MONTH from _X.cw_modification_date) AS INTEGER) ORDER BY 1'''), + def test_modulo(self): + self._check('Any 5 % 2', '''SELECT (5 % 2)''') + class SqlServer2005SQLGeneratorTC(PostgresSQLGeneratorTC): backend = 'sqlserver2005'