Add support for LOCALTIMESTAMP in SQLite.

This commit is contained in:
Richard Mitchell
2012-09-26 14:36:51 +01:00
parent c7c17e991c
commit cdeeccb595
+3
View File
@@ -412,6 +412,9 @@ class SQLiteCompiler(compiler.SQLCompiler):
def visit_now_func(self, fn, **kw):
return "CURRENT_TIMESTAMP"
def visit_localtimestamp_func(self, func, **kw):
return 'DATETIME(CURRENT_TIMESTAMP, "localtime")'
def visit_true(self, expr, **kw):
return '1'