aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-09 20:19:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-09 20:19:17 +0200
commit9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 (patch)
tree1e284d8088e51a962bd285b02f8096ed088463ee /odb/relational/source.cxx
parentdfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff)
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/relational/source.cxx')
-rw-r--r--odb/relational/source.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/relational/source.cxx b/odb/relational/source.cxx
index be16309..749e0d6 100644
--- a/odb/relational/source.cxx
+++ b/odb/relational/source.cxx
@@ -259,10 +259,12 @@ namespace relational
{
using semantics::type;
- type* t (&context::utype (*m));
+ type* t;
- if (type* c = context::container_wrapper (*t))
+ if (type* c = context::container (*m))
t = &context::container_vt (*c);
+ else
+ t = &context::utype (*m);
if (context::object_pointer (*t))
return e;