summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-10-10 12:42:55 +0200
committerAdrien Di Mascio <Adrien.DiMascio@logilab.fr>2006-10-10 12:42:55 +0200
commitbbb2439c0bf08cf6affc8ede7be6ac8b61165093 (patch)
tree27c37889d81609ca3c91068f01c74b4c01465f7a
parent4d0d4f2fea2aaade1c9903de048a2d6e482d5826 (diff)
downloadlogilab-common-bbb2439c0bf08cf6affc8ede7be6ac8b61165093.tar.gz
fixed date handling
-rw-r--r--db.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/db.py b/db.py
index bcf77df..e59f0a6 100644
--- a/db.py
+++ b/db.py
@@ -445,9 +445,6 @@ class _PGAdvFuncHelper(_GenericAdvFuncHelper):
table_schema)
return "CREATE TEMPORARY TABLE %s (%s) ON COMMIT DROP;" % (table_name,
table_schema)
- def sql_current_date(self):
- return "'TODAY'"
-
class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):
"""Generic helper, trying to provide generic way to implement
@@ -466,16 +463,6 @@ class _SqliteAdvFuncHelper(_GenericAdvFuncHelper):
"""return True if the DBMS support groups"""
return False
- # XXX according to current sql documentation, standard sql functions
- # CURRENT_* are now supported
- def sql_current_date(self):
- return "DATE('now')"
-
- def sql_current_time(self):
- return "TIME('now')"
-
- def sql_current_timestamp(self):
- return "DATETIME('now')"
## Drivers, Adapters and helpers registries ###################################