From 2fe7a723c0b98d23531a76d9c1a451e3a57bf0c5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 17 Nov 2010 18:05:06 +0200 Subject: Add support for unidirectional object relationships New test: common/relationship. --- odb/mysql/header.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'odb/mysql/header.cxx') 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 << "};"; -- cgit v1.1