aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/statement.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-03 10:05:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-03 10:05:55 +0200
commit951f324ae01c4d8f9cbe1edb19b5f1c370f825a2 (patch)
tree7b305bd87aefbae495b668c68374d1976306aaf0 /odb/oracle/statement.cxx
parentf2a1bfb98f447e6c922c12f4403a387243dd65c5 (diff)
Add position context to LOB result callback
It turns out position context can be useful in result handling as well.
Diffstat (limited to 'odb/oracle/statement.cxx')
-rw-r--r--odb/oracle/statement.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index 476377d..c1747a3 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -465,6 +465,7 @@ namespace odb
auto_descriptor<OCILobLocator>& locator (
*reinterpret_cast<auto_descriptor<OCILobLocator>*> (b->buffer));
+ ub4 position (0); // Position context.
ub1 piece (OCI_FIRST_PIECE);
// Setting the value pointed to by the byte_amt argument to 0 on the
@@ -517,6 +518,7 @@ namespace odb
// returned from a user callback. We simulate this.
//
if (!(*b->callback->result) (b->context->result,
+ &position,
lob_buffer.data (),
static_cast<ub4> (read),
cp))