use adbh.func_sqlname for more backend compat
authorsylvain.thenault@logilab.fr
Thu, 16 Apr 2009 18:31:53 +0200
changeset 1382 618f6aee8d52
parent 1381 6042f1b342bb
child 1385 41fe68a4f94c
use adbh.func_sqlname for more backend compat
server/sources/rql2sql.py
--- a/server/sources/rql2sql.py	Thu Apr 16 16:02:24 2009 +0200
+++ b/server/sources/rql2sql.py	Thu Apr 16 18:31:53 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"""