From 9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Nov 2011 20:19:17 +0200 Subject: Make sure we can use same type as both container and simple value --- odb/relational/oracle/common.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odb/relational/oracle/common.hxx') diff --git a/odb/relational/oracle/common.hxx b/odb/relational/oracle/common.hxx index 0aa5419..d2799cb 100644 --- a/odb/relational/oracle/common.hxx +++ b/odb/relational/oracle/common.hxx @@ -88,6 +88,14 @@ namespace relational } }; + bool + container (member_info& mi) + { + // This cannot be a container if we have a type override. + // + return type_override_ == 0 && context::container (mi.m); + } + // The false return value indicates that no further callbacks // should be called for this member. // -- cgit v1.1