diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-02 08:33:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-09-02 08:33:25 +0200 |
commit | 9715f388db714fb663b854883e4cad5f2aa3c860 (patch) | |
tree | febbbba7980a6891784440d86911b13befe108a7 /odb/pgsql/statement-cache.hxx | |
parent | b5ed13549a87dccb56f756d6fbc5f7bf537e9640 (diff) |
Support for versioning simple value in object
Diffstat (limited to 'odb/pgsql/statement-cache.hxx')
-rw-r--r-- | odb/pgsql/statement-cache.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/odb/pgsql/statement-cache.hxx b/odb/pgsql/statement-cache.hxx index 6a4c645..3ad4644 100644 --- a/odb/pgsql/statement-cache.hxx +++ b/odb/pgsql/statement-cache.hxx @@ -29,7 +29,9 @@ namespace odb class LIBODB_PGSQL_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_pgsql>::statements_type& @@ -45,6 +47,7 @@ namespace odb details::type_info_comparator> map; connection& conn_; + unsigned int version_seq_; map map_; }; } |