aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/statement-cache.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-10 14:10:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-10 14:10:45 +0200
commita3372ca4e3eb1ba4e87dfa9ccb0c78c379935441 (patch)
treefda49b86acd9c9f79d0ea7bd9262ed6f5a41803e /odb/oracle/statement-cache.hxx
parent1d287936950aa96a7b4a12b0d05633f257ab2c90 (diff)
Schema versioning support
Diffstat (limited to 'odb/oracle/statement-cache.hxx')
-rw-r--r--odb/oracle/statement-cache.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/oracle/statement-cache.hxx b/odb/oracle/statement-cache.hxx
index 2795fa4..10f08ea 100644
--- a/odb/oracle/statement-cache.hxx
+++ b/odb/oracle/statement-cache.hxx
@@ -29,7 +29,9 @@ namespace odb
class LIBODB_ORACLE_EXPORT statement_cache
{
public:
- statement_cache (connection& conn): conn_ (conn) {}
+ statement_cache (connection& conn)
+ : conn_ (conn),
+ version_seq_ (conn.database ().schema_version_sequence ()) {}
template <typename T>
typename object_traits_impl<T, id_oracle>::statements_type&
@@ -45,6 +47,7 @@ namespace odb
details::type_info_comparator> map;
connection& conn_;
+ unsigned int version_seq_;
map map_;
};
}