aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/polymorphic-object-statements.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-05 15:50:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-05 15:50:07 +0200
commit4443c9284e35c070478045b4e5963c64cd108e42 (patch)
tree57f395b2c18dd1a946046e9c6c2eb155fd941a1c /odb/pgsql/polymorphic-object-statements.hxx
parent4e33546b4c0a29d879a38029ad103374d4a779ef (diff)
Add support for change-tracking containers
ODB now supports "smart" ordered containers. Such containers get extra functions for updating and deleting individual elements. Based on this functionality implement two change-tracking containers: odb::vector (equivalent to std::vector) and QOdbList (equivalent to QList). New tests: common/container/change-tracking and qt/common/container/change- tracking.
Diffstat (limited to 'odb/pgsql/polymorphic-object-statements.hxx')
-rw-r--r--odb/pgsql/polymorphic-object-statements.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/pgsql/polymorphic-object-statements.hxx b/odb/pgsql/polymorphic-object-statements.hxx
index 2f1a03a..6109597 100644
--- a/odb/pgsql/polymorphic-object-statements.hxx
+++ b/odb/pgsql/polymorphic-object-statements.hxx
@@ -378,7 +378,11 @@ namespace odb
container_statement_cache_type&
container_statment_cache ()
{
- return container_statement_cache_.get (conn_);
+ return container_statement_cache_.get (
+ conn_,
+ root_statements_.id_image_binding (),
+ root_statements_.id_image_native_binding (),
+ object_traits::find_statement_types);
}
public: