aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/header.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/header.cxx')
-rw-r--r--odb/relational/header.cxx7
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[];";