summaryrefslogtreecommitdiff
path: root/odb/relational/oracle/context.cxx
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 /odb/relational/oracle/context.cxx
parent66f4084caafd3dc0fd74bf6a7f57b785a5a1e051 (diff)
Unwrap the type before checking whether it is unsigned
Diffstat (limited to 'odb/relational/oracle/context.cxx')
-rw-r--r--odb/relational/oracle/context.cxx3
1 files changed, 2 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" ||