server/sources/rql2sql.py
branchtls-sprint
changeset 1477 b056a49c16dc
parent 1398 5fe84a5f7035
parent 1382 618f6aee8d52
child 1522 47b2ffbee760
--- a/server/sources/rql2sql.py	Fri Apr 24 16:48:38 2009 +0200
+++ b/server/sources/rql2sql.py	Fri Apr 24 17:04:14 2009 +0200
@@ -935,9 +935,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"""