diff options
Diffstat (limited to 'odb/relational/sqlite')
-rw-r--r-- | odb/relational/sqlite/context.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/relational/sqlite/context.cxx b/odb/relational/sqlite/context.cxx index 94b8067..a959477 100644 --- a/odb/relational/sqlite/context.cxx +++ b/odb/relational/sqlite/context.cxx @@ -177,7 +177,11 @@ namespace relational virtual bool pre (member_info& mi) { - return (section_ == 0 && !separate_load (mi.m)) || + // If we have a key prefix (container), then it can't be in a + // section (while mi.m can). + // + return !key_prefix_.empty () || + (section_ == 0 && !separate_load (mi.m)) || (section_ != 0 && *section_ == section (mi.m)); } |