diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-27 20:23:23 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-27 20:23:23 +0000 |
commit | 9302f2b2fbae513c675e5fcd19e3836d4b63d0fe (patch) | |
tree | f0f8c43642307df21cd75848f7731164ace3af0a /test/dialect/postgres.py | |
parent | 82edfd0e915717dbc93d53247e5f2515ac5dd474 (diff) | |
download | sqlalchemy-9302f2b2fbae513c675e5fcd19e3836d4b63d0fe.tar.gz |
- postgres TIMESTAMP renders correctly [ticket:981]
Diffstat (limited to 'test/dialect/postgres.py')
-rw-r--r-- | test/dialect/postgres.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py index 9ec44203a..71fb0c763 100644 --- a/test/dialect/postgres.py +++ b/test/dialect/postgres.py @@ -705,5 +705,15 @@ class ArrayTest(TestBase, AssertsExecutionResults): self.assertEquals(results[1]['strarr'], [[u'm\xe4\xe4'], [u'm\xf6\xf6']]) arrtable.delete().execute() +class TimeStampTest(TestBase, AssertsExecutionResults): + __only_on__ = 'postgres' + def test_timestamp(self): + engine = testing.db + connection = engine.connect() + s = select([func.TIMESTAMP("12/25/07").label("ts")]) + result = connection.execute(s).fetchone() + self.assertEqual(result[0], datetime.datetime(2007, 12, 25, 0, 0)) + + if __name__ == "__main__": testenv.main() |