From d206cafe3627c3346b84dd208f193f758d7b8698 Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 10 Nov 2011 12:48:37 +0200 Subject: Set LOB parameter capacity in runtime instead of in generated code --- odb/oracle/statement.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx index 01d5b23..6d5d154 100644 --- a/odb/oracle/statement.cxx +++ b/odb/oracle/statement.cxx @@ -313,6 +313,14 @@ namespace odb b->buffer = &lob_buffer; + // When binding LOB parameters, the capacity must be greater than + // than 4000 and less than the maximum LOB length in bytes. If it + // is not, OCI returns an error. Other than this, the capacity + // seems to be irrelevant to OCI bind behaviour for LOB parameters + // when used with callbacks. + // + b->capacity = 4096; + break; } default: -- cgit v1.1