server/test/unittest_rql2sql.py
changeset 5811 e77cea9721e7
parent 5768 1e73a466aa69
parent 5793 1faff41593df
child 5849 9db65b381028
--- a/server/test/unittest_rql2sql.py	Fri Jun 18 18:31:22 2010 +0200
+++ b/server/test/unittest_rql2sql.py	Mon Jun 21 13:23:11 2010 +0200
@@ -1443,6 +1443,12 @@
             self.o.attr_map.clear()
 
 
+    def test_concat_string(self):
+        self._check('Any "A"+R WHERE X ref R',
+                    '''SELECT (A || _X.cw_ref)
+FROM cw_Affaire AS _X''')
+
+
 class SqliteSQLGeneratorTC(PostgresSQLGeneratorTC):
     backend = 'sqlite'