diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-30 06:06:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-08-30 06:06:26 +0200 |
commit | f3f682c074117fda84bf51a4ce9a378d950a04de (patch) | |
tree | 464e5db1a9843a1edf814bb0c0143767219ccc0c /odb/relational/header.cxx | |
parent | c1f534db5d6bc29f9be0e7498e4971c7132d013a (diff) |
Statement processing/optimization base work
Diffstat (limited to 'odb/relational/header.cxx')
-rw-r--r-- | odb/relational/header.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
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[];"; |