diff options
author | Adrien Di Mascio <adim@logilab.fr> | 2006-05-24 17:16:26 +0200 |
---|---|---|
committer | Adrien Di Mascio <adim@logilab.fr> | 2006-05-24 17:16:26 +0200 |
commit | 96935250413d8c1c0181c1dd1622766f55eae4a7 (patch) | |
tree | 6d332d42290361fa6ea0452c9a074defd4356944 | |
parent | 4cb49b631b9e1cf21db3f373e3ee2e6963155efa (diff) | |
download | logilab-common-96935250413d8c1c0181c1dd1622766f55eae4a7.tar.gz |
CURRENT_DATE is not supported since postgres7.2, use TODAY instead
-rw-r--r-- | db.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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): |