1. Lee alayii
  2. sqlalchemy

Commits

Richard Mitchell  committed 044d30d

Add support for LOCALTIMESTAMP in SQLite.

  • Participants
  • Parent commits 1329ad3
  • Branches default

Comments (0)

Files changed (1)

File lib/sqlalchemy/dialects/sqlite/base.py

View file
     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'