From d6b9757778edea97bdbda5c98eb61b37d93296cc Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 26 May 2009 01:00:46 +0000 Subject: - added unit test for exception formatting - Deprecated the hardcoded TIMESTAMP function, which when used as func.TIMESTAMP(value) would render "TIMESTAMP value". This breaks on some platforms as Postgres doesn't allow bind parameters to be used in this context. The hard-coded uppercase is also inappropriate and there's lots of other PG casts that we'd need to support. So instead, use text constructs i.e. select(["timestamp '12/05/09'"]). --- test/dialect/postgres.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/dialect/postgres.py') diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py index d613ad2dd..2dfbe018c 100644 --- a/test/dialect/postgres.py +++ b/test/dialect/postgres.py @@ -865,6 +865,8 @@ class ArrayTest(TestBase, AssertsExecutionResults): class TimeStampTest(TestBase, AssertsExecutionResults): __only_on__ = 'postgres' + + @testing.uses_deprecated() def test_timestamp(self): engine = testing.db connection = engine.connect() -- cgit v1.2.1