aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-04-27 13:57:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-04-27 13:57:34 +0200
commit52793dc8860e38f725dc0ca8300c4e2ca9d4ceb9 (patch)
tree88d868922e1903cc56236516c8ab44b4bc222a2d /odb/relational/header.cxx
parentf8b3ee6d42f5112c4e66a07cc7fdba43ce66aacd (diff)
Don't generate grow code for databases that don't need it
Diffstat (limited to 'odb/relational/header.cxx')
-rw-r--r--odb/relational/header.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/relational/header.cxx b/odb/relational/header.cxx
index 48bca91..45f58b8 100644
--- a/odb/relational/header.cxx
+++ b/odb/relational/header.cxx
@@ -322,7 +322,7 @@ traverse_object (type& c)
// init (image, object)
//
- os << "static bool" << endl
+ os << "static " << (generate_grow ? "bool" : "void") << endl
<< "init (image_type&, const object_type&, " << db << "::statement_kind);"
<< endl;