summaryrefslogtreecommitdiff
path: root/test/dialect/test_sqlite.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-26 10:20:56 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-26 10:20:56 -0400
commit0c7b989ce5e50e39be03870e4ee3f809918af3b6 (patch)
tree32bbc4c73038c05f308f95df722cba99d88cce7c /test/dialect/test_sqlite.py
parent554de7aaf04be4e91cfa24b614e9ea53aa02bf7f (diff)
downloadsqlalchemy-0c7b989ce5e50e39be03870e4ee3f809918af3b6.tar.gz
- [feature] Added support for the localtimestamp()
SQL function implemented in SQLite, courtesy Richard Mitchell. Added test
Diffstat (limited to 'test/dialect/test_sqlite.py')
-rw-r--r--test/dialect/test_sqlite.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/dialect/test_sqlite.py b/test/dialect/test_sqlite.py
index 3f714b825..07995cdc4 100644
--- a/test/dialect/test_sqlite.py
+++ b/test/dialect/test_sqlite.py
@@ -590,6 +590,12 @@ class SQLTest(fixtures.TestBase, AssertsCompiledSQL):
"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,