From 76a03fd7964b85cdc1a903df79bfd47711c720e9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 26 Nov 2014 10:58:50 +0200 Subject: 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. --- odb/oracle/statement.hxx | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'odb/oracle/statement.hxx') diff --git a/odb/oracle/statement.hxx b/odb/oracle/statement.hxx index 6a5d604..ba85fd8 100644 --- a/odb/oracle/statement.hxx +++ b/odb/oracle/statement.hxx @@ -110,17 +110,6 @@ namespace odb std::size_t count, std::size_t lob_prefetch_size = 0); - // Rebind LOB input parameters. If a query has made a private copy of - // the shared image, any LOB handles that were previously owned by the - // shared image are now owned by the private image of the query. These - // LOB handles need to be reallocated and redefined so that any unfetched - // results may be fetched. - // - void - rebind_result (bind*, - std::size_t count, - std::size_t lob_prefetch_size = 0); - // Stream the result LOBs, calling user callbacks where necessary. // The old_base and new_base arguments can be used to "re-base" the // lob_callback struct pointer (stored in bind::callback), the lob @@ -278,9 +267,7 @@ namespace odb private: binding& result_; - std::size_t result_version_; ub4 result_count_; // Actual number of bound columns. - const std::size_t lob_prefetch_size_; bool done_; }; -- cgit v1.1