aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statement-cache.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-02 08:33:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-02 08:33:25 +0200
commit9715f388db714fb663b854883e4cad5f2aa3c860 (patch)
treefebbbba7980a6891784440d86911b13befe108a7 /odb/pgsql/statement-cache.hxx
parentb5ed13549a87dccb56f756d6fbc5f7bf537e9640 (diff)
Support for versioning simple value in object
Diffstat (limited to 'odb/pgsql/statement-cache.hxx')
-rw-r--r--odb/pgsql/statement-cache.hxx5
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_;
};
}