diff options
-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; } |