diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2006-10-10 12:42:55 +0200 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2006-10-10 12:42:55 +0200 |
commit | bbb2439c0bf08cf6affc8ede7be6ac8b61165093 (patch) | |
tree | 27c37889d81609ca3c91068f01c74b4c01465f7a | |
parent | 4d0d4f2fea2aaade1c9903de048a2d6e482d5826 (diff) | |
download | logilab-common-bbb2439c0bf08cf6affc8ede7be6ac8b61165093.tar.gz |
fixed date handling
-rw-r--r-- | db.py | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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 ################################### |