diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-27 11:36:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-27 11:36:43 +0200 |
commit | 15b1a95942518c84f8161c59820ea5d0e49a4e54 (patch) | |
tree | 0a2f6e60622c6085dba00d21e094944526f97d33 /odb/relational/model.hxx | |
parent | 7e22a444bc360d1b74a25c6d508daea86ca8d5d2 (diff) |
Add support for NULL pointers to objects with composite object ids
Diffstat (limited to 'odb/relational/model.hxx')
-rw-r--r-- | odb/relational/model.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/relational/model.hxx b/odb/relational/model.hxx index afaa90d..d41b701 100644 --- a/odb/relational/model.hxx +++ b/odb/relational/model.hxx @@ -102,7 +102,7 @@ namespace relational traverse_column (semantics::data_member& m, string const& name, bool) { bool id (object_columns_base::id ()); // Id or part of. - bool null (!id && context::null (m, key_prefix_)); + bool null (!id && object_columns_base::null ()); string col_id (id_prefix_ + (key_prefix_.empty () ? m.name () : key_prefix_)); |