diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-24 17:51:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-08-24 17:51:48 +0200 |
commit | de130e93d8b2c026732211e67b6f31157f1b7e87 (patch) | |
tree | 898f6bf3f0029565654b044df057789097c86ab0 /odb/context.hxx | |
parent | 15995637f9cab6a4d92a2383e2afdba2b48d5f7b (diff) |
Fix inconsistent composite value member prefix derivation
Diffstat (limited to 'odb/context.hxx')
-rw-r--r-- | odb/context.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/context.hxx b/odb/context.hxx index 7032dcf..002ee6e 100644 --- a/odb/context.hxx +++ b/odb/context.hxx @@ -1343,12 +1343,12 @@ public: // struct column_prefix { - column_prefix (): derived (false) {} + column_prefix (): derived (false), underscore (false) {} column_prefix (semantics::data_member& m, string const& key_prefix = string (), string const& default_name = string ()) - : derived (false) + : derived (false), underscore (false) { append (m, key_prefix, default_name); } @@ -1368,6 +1368,7 @@ public: string prefix; bool derived; // One of the components in the prefix was derived. + bool underscore; // Trailing underscore was automatically added. }; string |