aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-02 08:31:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-02 08:31:40 +0200
commitd71c8cf3a584c535ea3e2e063cb1354b539d2664 (patch)
tree3471d9b6fa486b00fe4c2292bda4a588ff015fa0 /odb
parent735368e0d613c94519a7205ab0b709f832be8785 (diff)
Use image copy in load_id()
Diffstat (limited to 'odb')
-rw-r--r--odb/oracle/object-result.txx3
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/oracle/object-result.txx b/odb/oracle/object-result.txx
index 0df1c03..c998e47 100644
--- a/odb/oracle/object-result.txx
+++ b/odb/oracle/object-result.txx
@@ -87,7 +87,8 @@ namespace odb
object_result_impl<T>::
load_id ()
{
- return object_traits::id (statements_.image ());
+ return object_traits::id (
+ use_copy_ ? *image_copy_ : statements_.image ());
}
template <typename T>