summaryrefslogtreecommitdiff
path: root/db.py
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-07-12 16:10:45 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-07-12 16:10:45 +0200
commit8ef71d34acb62a076827bcb5dcdb3cb4258fab0d (patch)
tree15f176b6b2b7dedb1d31b4c5583baee2b33f13e6 /db.py
parent181d4aa00dbbb0222f86eff2bb37d43b5483a3b5 (diff)
downloadlogilab-common-8ef71d34acb62a076827bcb5dcdb3cb4258fab0d.tar.gz
TODAY must be quoted for postgres
Diffstat (limited to 'db.py')
-rw-r--r--db.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/db.py b/db.py
index 9bc7709..30cd913 100644
--- a/db.py
+++ b/db.py
@@ -420,7 +420,7 @@ class _PGAdvFuncHelper(_GenericAdvFuncHelper):
return "CREATE TEMPORARY TABLE %s (%s) ON COMMIT DROP;" % (table_name,
table_schema)
def sql_current_date(self):
- return 'TODAY'
+ return "'TODAY'"
class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):