aboutsummaryrefslogtreecommitdiff
path: root/odb/polymorphic-object-result.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-15 13:17:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-19 11:38:24 +0200
commit1e78bdc724e95898c04a3409b0b192aa7f77780b (patch)
treed26ae47ae9956612b5973f536219f0c9b455db03 /odb/polymorphic-object-result.txx
parent5b0430fdf4617b396e462872d438a663b174a3a8 (diff)
Implement early connection release
Diffstat (limited to 'odb/polymorphic-object-result.txx')
-rw-r--r--odb/polymorphic-object-result.txx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/polymorphic-object-result.txx b/odb/polymorphic-object-result.txx
index 033b1ad..5d6c479 100644
--- a/odb/polymorphic-object-result.txx
+++ b/odb/polymorphic-object-result.txx
@@ -22,7 +22,7 @@ namespace odb
const id_type& id (load_id ());
root_pointer_type rp (
- object_traits::pointer_cache_traits::find (database (), id));
+ object_traits::pointer_cache_traits::find (this->db_, id));
if (!root_pointer_traits::null_ptr (rp))
{
@@ -62,7 +62,7 @@ namespace odb
typename object_traits::reference_cache_traits::insert_guard ig (
object_traits::reference_cache_traits::insert (
- res_->database (), res_->load_id (), obj));
+ res_->db_, res_->load_id (), obj));
res_->load (&obj, false);
ig.release ();
}