diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-07-12 15:23:28 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-07-12 15:25:52 +0200 |
commit | 49a74130016351847f9b4a86d8a079ad7307f369 (patch) | |
tree | 28a5ca3fb2da6df297592ecc55a59de7a956d1d6 | |
parent | 35cddc04a69131815d4f704bf9dd011be26a5df8 (diff) |
Correct bugs in PostgreSQL sql type parser
-rw-r--r-- | odb/relational/pgsql/context.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
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; } |