From f3f682c074117fda84bf51a4ce9a378d950a04de Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 30 Aug 2013 06:06:26 +0200 Subject: Statement processing/optimization base work --- odb/relational/header.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'odb/relational/header.cxx') diff --git a/odb/relational/header.cxx b/odb/relational/header.cxx index da7f80c..9bf6f5e 100644 --- a/odb/relational/header.cxx +++ b/odb/relational/header.cxx @@ -27,7 +27,6 @@ traverse_object (type& c) bool reuse_abst (abst && !poly); string const& type (class_fq_name (c)); - column_count_type const& cc (column_count (c)); // Sections. // @@ -325,6 +324,9 @@ traverse_object (type& c) return; } + column_count_type const& cc (column_count (c)); + bool versioned (force_versioned); + // Statements typedefs. // if (poly) @@ -403,6 +405,9 @@ traverse_object (type& c) cc.separate_update << "UL;" << endl; + os << "static const bool versioned = " << versioned << ";" + << endl; + // Statements. // os << "static const char persist_statement[];"; -- cgit v1.1