From 868e98bf407175b016e9e5cbc95bcf0cc859362a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ionu=C8=9B=20Cioc=C3=AErlan?= Date: Wed, 23 Nov 2016 09:43:47 -0500 Subject: Allow the value 0 for Postgresql TIME/TIMESTAMP precision Change-Id: Ie38c48369222d95849645f027e2c659f503cfd53 Pull-request: https://github.com/zzzeek/sqlalchemy/pull/322 --- test/dialect/postgresql/test_types.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/dialect') 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) -- cgit v1.2.1