summaryrefslogtreecommitdiff
path: root/odb/mysql/inline.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/inline.cxx')
-rw-r--r--odb/mysql/inline.cxx22
1 files changed, 22 insertions, 0 deletions
diff --git a/odb/mysql/inline.cxx b/odb/mysql/inline.cxx
index 8388cac..19b1b41 100644
--- a/odb/mysql/inline.cxx
+++ b/odb/mysql/inline.cxx
@@ -33,6 +33,14 @@ namespace mysql
t.traverse (c);
semantics::data_member& id (*t.member ());
+ bool has_grow;
+ {
+ has_grow_member m (*this);
+ traversal::names n (m);
+ names (c, n);
+ has_grow = m.result ();
+ }
+
os << "// " << c.name () << endl
<< "//" << endl
<< endl;
@@ -46,6 +54,20 @@ namespace mysql
<< "{"
<< "return obj." << id.name () << ";" << endl
<< "}";
+
+ // grow ()
+ //
+ if (!has_grow)
+ {
+ // The dummy implementation is needed for result_impl.
+ //
+ os << "inline" << endl
+ << "bool " << traits << "::" << endl
+ << "grow (image_type&, my_bool*)"
+ << "{"
+ << "return false;"
+ << "}";
+ }
}
};
}