aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statement-cache.hxx
diff options
context:
space:
mode:
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_;
};
}