aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-07 19:11:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-07 19:11:23 +0200
commitf70642bcdc61d679981a55ce9bcd88c08c8dadc1 (patch)
treec97643c5c564bc68167c0a4b8019a9998227f61a
parent66f4084caafd3dc0fd74bf6a7f57b785a5a1e051 (diff)
Unwrap the type before checking whether it is unsigned
-rw-r--r--odb/relational/oracle/context.cxx3
-rw-r--r--odb/relational/oracle/context.hxx2
2 files changed, 4 insertions, 1 deletions
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&);