merge
authorKatia Saurfelt <katia.saurfelt@logilab.fr>
Fri, 17 Apr 2009 10:00:26 +0200
changeset 1395 e7f12251945a
parent 1394 ff1e912cbc39 (current diff)
parent 1385 41fe68a4f94c (diff)
child 1404 971b19de6b85
child 1588 79755c89b4f3
merge
--- a/server/sources/rql2sql.py	Fri Apr 17 09:59:53 2009 +0200
+++ b/server/sources/rql2sql.py	Fri Apr 17 10:00:26 2009 +0200
@@ -936,9 +936,9 @@
     def visit_function(self, func, contextrels=None):
         """generate SQL name for a function"""
         # function_description will check function is supported by the backend
-        self.dbms_helper.function_description(func.name) 
-        return '%s(%s)' % (func.name, ', '.join(c.accept(self, contextrels)
-                                                for c in func.children))
+        sqlname = self.dbms_helper.func_sqlname(func.name) 
+        return '%s(%s)' % (sqlname, ', '.join(c.accept(self, contextrels)
+                                              for c in func.children))
 
     def visit_constant(self, constant, contextrels=None):
         """generate SQL name for a constant"""