diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-09 20:19:17 +0200 |
commit | 9072761e0c9486cc3d1265a1c1e2b39db8e68bf7 (patch) | |
tree | 1e284d8088e51a962bd285b02f8096ed088463ee /odb/relational/sqlite/common.hxx | |
parent | dfba83f1ef3b5856d36dc29da0b6e02f51bc36b3 (diff) |
Make sure we can use same type as both container and simple value
Diffstat (limited to 'odb/relational/sqlite/common.hxx')
-rw-r--r-- | odb/relational/sqlite/common.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/relational/sqlite/common.hxx b/odb/relational/sqlite/common.hxx index c998607..3bdc01e 100644 --- a/odb/relational/sqlite/common.hxx +++ b/odb/relational/sqlite/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. // |