From 52793dc8860e38f725dc0ca8300c4e2ca9d4ceb9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 27 Apr 2012 13:57:34 +0200 Subject: Don't generate grow code for databases that don't need it --- odb/relational/header.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/relational/header.cxx') 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; -- cgit v1.1