aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/pgsql/context.cxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-06-09 09:27:26 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-05 14:43:37 +0200
commitafaf8788acb1a2b518fb36bf95c24fcfd568bc5f (patch)
tree3528680b814886fcee345affd0abb9126fa29b2e /odb/relational/pgsql/context.cxx
parentefbbb77c4a41da5b21302a385bbbb9fffb15e157 (diff)
Remove support for timezone types TIMETZ and TIMESTAMPTZ
Diffstat (limited to 'odb/relational/pgsql/context.cxx')
-rw-r--r--odb/relational/pgsql/context.cxx12
1 files changed, 10 insertions, 2 deletions
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.