diff options
| author | Ionuț Ciocîrlan <jdxlark@gmail.com> | 2016-11-23 09:43:47 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-11-23 09:48:34 -0500 |
| commit | 868e98bf407175b016e9e5cbc95bcf0cc859362a (patch) | |
| tree | b233d94a46691704051834716f342b26b67fd9d1 /test/dialect | |
| parent | df9b6492e5ca47e26d539d2283fa816a2d5c8ad6 (diff) | |
| download | sqlalchemy-868e98bf407175b016e9e5cbc95bcf0cc859362a.tar.gz | |
Allow the value 0 for Postgresql TIME/TIMESTAMP precision
Change-Id: Ie38c48369222d95849645f027e2c659f503cfd53
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/322
Diffstat (limited to 'test/dialect')
| -rw-r--r-- | test/dialect/postgresql/test_types.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/dialect/postgresql/test_types.py b/test/dialect/postgresql/test_types.py index a41d6db62..b558d09fb 100644 --- a/test/dialect/postgresql/test_types.py +++ b/test/dialect/postgresql/test_types.py @@ -697,6 +697,10 @@ class TimePrecisionTest(fixtures.TestBase, AssertsCompiledSQL): 'TIMESTAMP(5) WITHOUT TIME ZONE'), (postgresql.TIMESTAMP(timezone=True, precision=5), 'TIMESTAMP(5) WITH TIME ZONE'), + (postgresql.TIME(precision=0), + 'TIME(0) WITHOUT TIME ZONE'), + (postgresql.TIMESTAMP(precision=0), + 'TIMESTAMP(0) WITHOUT TIME ZONE'), ]: self.assert_compile(type_, expected) |
