aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/statement.cxx
diff options
context:
space:
mode:
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))