From f70642bcdc61d679981a55ce9bcd88c08c8dadc1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Sep 2015 19:11:23 +0200 Subject: Unwrap the type before checking whether it is unsigned --- odb/relational/oracle/context.cxx | 3 ++- odb/relational/oracle/context.hxx | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/odb/relational/oracle/context.cxx b/odb/relational/oracle/context.cxx index e14ea77..2abb692 100644 --- a/odb/relational/oracle/context.cxx +++ b/odb/relational/oracle/context.cxx @@ -199,7 +199,8 @@ namespace relational bool context:: unsigned_integer (semantics::type& t) { - const string& s (t.name ()); + semantics::type* wt (wrapper (t)); + const string& s ((wt == 0 ? t : utype (*wt)).name ()); return s == "bool" || s == "unsigned char" || diff --git a/odb/relational/oracle/context.hxx b/odb/relational/oracle/context.hxx index c0a9dfe..a4a2ebc 100644 --- a/odb/relational/oracle/context.hxx +++ b/odb/relational/oracle/context.hxx @@ -103,6 +103,8 @@ namespace relational parse_sql_type (string, custom_db_types const* = 0); public: + // If necessary, unwraps. + // static bool unsigned_integer (semantics::type&); -- cgit v1.1