Commits

Mike Bayer committed a248510

- [feature] Added support for the localtimestamp()
SQL function implemented in SQLite, courtesy
Richard Mitchell. Added test

Comments (0)

Files changed (2)

     old SQLite versions that don't deliver
     default info as a string.  [ticket:2265]
 
+  - [feature] Added support for the localtimestamp()
+    SQL function implemented in SQLite, courtesy
+    Richard Mitchell.
+
 - postgresql
   - [bug] Columns in reflected primary key constraint
     are now returned in the order in which the constraint

test/dialect/test_sqlite.py

             "1"
         )
 
+    def test_localtime(self):
+        self.assert_compile(
+            func.localtimestamp(),
+            'DATETIME(CURRENT_TIMESTAMP, "localtime")'
+        )
+
     def test_constraints_with_schemas(self):
         metadata = MetaData()
         t1 = Table('t1', metadata,