summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/common.hxx
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/mysql/common.hxx
parentdfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff)
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/relational/mysql/common.hxx')
-rw-r--r--odb/relational/mysql/common.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/relational/mysql/common.hxx b/odb/relational/mysql/common.hxx
index 66269c6..617bc73 100644
--- a/odb/relational/mysql/common.hxx
+++ b/odb/relational/mysql/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.
//