diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-18 18:50:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-04-19 08:39:02 +0200 |
commit | b904af7d7a716d243fb73e75b4a1cc404c9455f3 (patch) | |
tree | 75bfb4f9773623a50c6dcd4d6bdec53b0efba128 /odb/relational/mysql/common.cxx | |
parent | cdb791febe6c9ab2cfa36b1a07dfc71548674cf1 (diff) |
Implement automatic mapping for C++ enums
Diffstat (limited to 'odb/relational/mysql/common.cxx')
-rw-r--r-- | odb/relational/mysql/common.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/relational/mysql/common.cxx b/odb/relational/mysql/common.cxx index 82acc42..c9a33e4 100644 --- a/odb/relational/mysql/common.cxx +++ b/odb/relational/mysql/common.cxx @@ -277,11 +277,12 @@ namespace relational } void member_image_type:: - traverse_enum (member_info&) + traverse_enum (member_info& mi) { - // Represented as string. + // Represented as either integer or string. // - type_ = "details::buffer"; + type_ = "mysql::value_traits< " + mi.fq_type () + + ", mysql::id_enum >::image_type"; } void member_image_type:: |