aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/no-id-object-result.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-26 10:58:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-26 10:58:50 +0200
commit76a03fd7964b85cdc1a903df79bfd47711c720e9 (patch)
tree4c73f15b891746990b62e9a33b75c7feb2989b8d /odb/oracle/no-id-object-result.txx
parent7a3b76479162e3e3fe6c425f7bb20eaea8f41e17 (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/no-id-object-result.txx')
-rw-r--r--odb/oracle/no-id-object-result.txx9
1 files changed, 1 insertions, 8 deletions
diff --git a/odb/oracle/no-id-object-result.txx b/odb/oracle/no-id-object-result.txx
index c58e0af..d845ab9 100644
--- a/odb/oracle/no-id-object-result.txx
+++ b/odb/oracle/no-id-object-result.txx
@@ -129,7 +129,7 @@ namespace odb
template <typename T>
void no_id_object_result_impl<T>::
- change_callback (void* c, binding* b)
+ change_callback (void* c)
{
no_id_object_result_impl<T>* r (
static_cast<no_id_object_result_impl<T>*> (c));
@@ -141,13 +141,6 @@ namespace odb
else
*r->image_copy_ = im;
- // See comment in simple object_result for details on what's going
- // on here.
- //
- im.version++;
- if (b != 0)
- b->version++;
-
im.change_callback_.callback = 0;
im.change_callback_.context = 0;