diff options
-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> |