diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 08:31:40 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-11-02 08:31:40 +0200 |
commit | d71c8cf3a584c535ea3e2e063cb1354b539d2664 (patch) | |
tree | 3471d9b6fa486b00fe4c2292bda4a588ff015fa0 | |
parent | 735368e0d613c94519a7205ab0b709f832be8785 (diff) |
Use image copy in load_id()
-rw-r--r-- | odb/oracle/object-result.txx | 3 |
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> |