diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-26 10:58:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-26 10:58:50 +0200 |
commit | 76a03fd7964b85cdc1a903df79bfd47711c720e9 (patch) | |
tree | 4c73f15b891746990b62e9a33b75c7feb2989b8d /odb/oracle/view-result.txx | |
parent | 7a3b76479162e3e3fe6c425f7bb20eaea8f41e17 (diff) |
Reimplement image copying for Oracle
Now we no longer "steal" descriptors (destructive copy). Instead, for
LOBs, we clone the locator using OCILobAssign(). For date-time types we
extract the data during copying. As a result of this change we no longer
need to track image changes and rebind the statements.
Diffstat (limited to 'odb/oracle/view-result.txx')
-rw-r--r-- | odb/oracle/view-result.txx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/odb/oracle/view-result.txx b/odb/oracle/view-result.txx index 402a571..982a33d 100644 --- a/odb/oracle/view-result.txx +++ b/odb/oracle/view-result.txx @@ -129,7 +129,7 @@ namespace odb template <typename T> void view_result_impl<T>:: - change_callback (void* c, binding*) + change_callback (void* c) { view_result_impl<T>* r (static_cast<view_result_impl<T>*> (c)); @@ -140,13 +140,6 @@ namespace odb else *r->image_copy_ = im; - // See comment in simple object_result for details on what's going - // on here. Except for views, there is nothing else other than the - // select binding, so just incrementing the binding version will - // be sufficient. - // - r->statements_.image_binding ().version++; - im.change_callback_.callback = 0; im.change_callback_.context = 0; |