From 9302f2b2fbae513c675e5fcd19e3836d4b63d0fe Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 27 Feb 2008 20:23:23 +0000 Subject: - postgres TIMESTAMP renders correctly [ticket:981] --- lib/sqlalchemy/databases/postgres.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/sqlalchemy/databases/postgres.py') diff --git a/lib/sqlalchemy/databases/postgres.py b/lib/sqlalchemy/databases/postgres.py index a9fa90c68..9f8e98607 100644 --- a/lib/sqlalchemy/databases/postgres.py +++ b/lib/sqlalchemy/databases/postgres.py @@ -631,6 +631,13 @@ class PGCompiler(compiler.DefaultCompiler): } ) + functions = compiler.DefaultCompiler.functions.copy() + functions.update ( + { + 'TIMESTAMP':lambda x:'TIMESTAMP %s' % x, + } + ) + def visit_sequence(self, seq): if seq.optional: return None -- cgit v1.2.1