From afaf8788acb1a2b518fb36bf95c24fcfd568bc5f Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 9 Jun 2011 09:27:26 +0200 Subject: Remove support for timezone types TIMETZ and TIMESTAMPTZ --- odb/relational/pgsql/context.cxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'odb/relational/pgsql/context.cxx') diff --git a/odb/relational/pgsql/context.cxx b/odb/relational/pgsql/context.cxx index d5e96a0..9fb1234 100644 --- a/odb/relational/pgsql/context.cxx +++ b/odb/relational/pgsql/context.cxx @@ -431,7 +431,11 @@ namespace relational } else if (id == "TIMETZ") { - r.type = sql_type::TIMETZ; + cerr << m.file () << ":" << m.line () << ":" << m.column () + << ": error: PostgreSQL time zones are not currently " + << "supported" << endl; + + throw generation_failed (); } else if (id == "TIMESTAMP") { @@ -439,7 +443,11 @@ namespace relational } else if (id == "TIMESTAMPTZ") { - r.type = sql_type::TIMESTAMPTZ; + cerr << m.file () << ":" << m.line () << ":" << m.column () + << ": error: PostgreSQL time zones are not currently " + << "supported" << endl; + + throw generation_failed (); } // // String and binary types. -- cgit v1.1