diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-17 18:05:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-17 18:05:06 +0200 |
commit | 2fe7a723c0b98d23531a76d9c1a451e3a57bf0c5 (patch) | |
tree | 8bd0323a9114a405902b3dfc116f97307278ae2b /odb/mysql/header.cxx | |
parent | 302b804ec633889f26dc54d937d9becc09246152 (diff) |
Add support for unidirectional object relationships
New test: common/relationship.
Diffstat (limited to 'odb/mysql/header.cxx')
-rw-r--r-- | odb/mysql/header.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/odb/mysql/header.cxx b/odb/mysql/header.cxx index 79b8d67..130a2ba 100644 --- a/odb/mysql/header.cxx +++ b/odb/mysql/header.cxx @@ -525,24 +525,25 @@ namespace mysql { case ck_ordered: { - os << "init (index_type&, value_type&, const data_image_type&);"; + os << "init (index_type&, value_type&, "; break; } case ck_map: case ck_multimap: { - os << "init (key_type&, value_type&, const data_image_type&);"; + os << "init (key_type&, value_type&, "; break; } case ck_set: case ck_multiset: { - os << "init (value_type&, const data_image_type&);"; + os << "init (value_type&, "; break; } } - os << endl; + os << "const data_image_type&, database&);" + << endl; // insert_one // @@ -801,7 +802,7 @@ namespace mysql // init (object, image) // os << "static void" << endl - << "init (object_type&, const image_type&);" + << "init (object_type&, const image_type&, database&);" << endl; // persist () @@ -895,7 +896,7 @@ namespace mysql // init (object, image) // os << "static void" << endl - << "init (value_type&, const image_type&);" + << "init (value_type&, const image_type&, database&);" << endl; os << "};"; |