summaryrefslogtreecommitdiff
path: root/odb/relational/mysql/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-04-18 18:50:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-04-19 08:39:02 +0200
commitb904af7d7a716d243fb73e75b4a1cc404c9455f3 (patch)
tree75bfb4f9773623a50c6dcd4d6bdec53b0efba128 /odb/relational/mysql/header.cxx
parentcdb791febe6c9ab2cfa36b1a07dfc71548674cf1 (diff)
Implement automatic mapping for C++ enums
Diffstat (limited to 'odb/relational/mysql/header.cxx')
-rw-r--r--odb/relational/mysql/header.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/relational/mysql/header.cxx b/odb/relational/mysql/header.cxx
index 5210677..5abb241 100644
--- a/odb/relational/mysql/header.cxx
+++ b/odb/relational/mysql/header.cxx
@@ -136,7 +136,9 @@ namespace relational
virtual void
traverse_enum (member_info& mi)
{
- // Represented as string.
+ // Represented as either integer or string. Since we don't know
+ // at the code generation time which one it is, we have to always
+ // keep size in case it is a string.
//
os << image_type << " " << mi.var << "value;"
<< "unsigned long " << mi.var << "size;"