summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Di Mascio <adim@logilab.fr>2006-05-24 17:16:26 +0200
committerAdrien Di Mascio <adim@logilab.fr>2006-05-24 17:16:26 +0200
commit96935250413d8c1c0181c1dd1622766f55eae4a7 (patch)
tree6d332d42290361fa6ea0452c9a074defd4356944
parent4cb49b631b9e1cf21db3f373e3ee2e6963155efa (diff)
downloadlogilab-common-96935250413d8c1c0181c1dd1622766f55eae4a7.tar.gz
CURRENT_DATE is not supported since postgres7.2, use TODAY instead
-rw-r--r--db.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/db.py b/db.py
index c46e7af..a22b592 100644
--- a/db.py
+++ b/db.py
@@ -418,7 +418,9 @@ class _PGAdvFuncHelper(_GenericAdvFuncHelper):
def sql_temporary_table(self, table_name, table_schema):
return "CREATE TEMPORARY TABLE %s (%s) ON COMMIT DROP;" % (table_name,
- table_schema)
+ table_schema)
+ def sql_current_date(self):
+ return 'TODAY'
class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):