diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-08 16:09:08 +0200 |
commit | 4eb0df751704345ec8744fe012e64064d5cdb754 (patch) | |
tree | 8043a94c33c5938073acce7137560a765efcaf1f /odb/relational/mysql | |
parent | 2731c14f6b16b8b40eb9b1c9061e6e296f3d49f8 (diff) |
Ground work for multi-database support
All generated code now includes database id. The database-specific
database class interface has been updated to include all the database
operations. The database-specific tests now use this interface.
Diffstat (limited to 'odb/relational/mysql')
-rw-r--r-- | odb/relational/mysql/common.cxx | 3 | ||||
-rw-r--r-- | odb/relational/mysql/source.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/odb/relational/mysql/common.cxx b/odb/relational/mysql/common.cxx index b8fa4c3..9d62b6b 100644 --- a/odb/relational/mysql/common.cxx +++ b/odb/relational/mysql/common.cxx @@ -168,7 +168,8 @@ namespace relational void member_image_type:: traverse_composite (member_info& mi) { - type_ = "composite_value_traits< " + mi.fq_type () + " >::image_type"; + type_ = "composite_value_traits< " + mi.fq_type () + + ", id_mysql >::image_type"; } void member_image_type:: diff --git a/odb/relational/mysql/source.cxx b/odb/relational/mysql/source.cxx index 15a4fcf..a9e7a16 100644 --- a/odb/relational/mysql/source.cxx +++ b/odb/relational/mysql/source.cxx @@ -340,7 +340,7 @@ namespace relational traverse_composite (member_info& mi) { os << "if (composite_value_traits< " << mi.fq_type () << - " >::grow (" << endl + ", id_mysql >::grow (" << endl << "i." << mi.var << "value, t + " << index_ << "UL))" << "{" << "grew = true;" |