From 49a74130016351847f9b4a86d8a079ad7307f369 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Tue, 12 Jul 2011 15:23:28 +0200 Subject: Correct bugs in PostgreSQL sql type parser --- 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 082800d..61dfa45 100644 --- a/odb/relational/pgsql/context.cxx +++ b/odb/relational/pgsql/context.cxx @@ -395,6 +395,10 @@ namespace relational // // String and binary types. // + else if (id == "CHAR") + { + r.type = sql_type::CHAR; + } else if (id == "VARCHAR") { r.type = sql_type::VARCHAR; @@ -414,6 +418,10 @@ namespace relational { r.type = sql_type::BYTEA; } + else if (id == "VARBIT") + { + r.type = sql_type::VARBIT; + } // // Other types. // @@ -440,7 +448,7 @@ namespace relational { r.type = sql_type::BIT; } - else if (prefix == "CHAR" || prefix == "CHARACTER") + else if (prefix == "CHARACTER") { r.type = sql_type::CHAR; } @@ -579,7 +587,7 @@ namespace relational { r.type = sql_type::BIT; } - else if (prefix == "CHAR" || prefix == "CHARACTER") + else if (prefix == "CHARACTER") { r.type = sql_type::CHAR; } -- cgit v1.1