diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-11-10 12:48:37 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-11-10 13:16:12 +0200 |
commit | d206cafe3627c3346b84dd208f193f758d7b8698 (patch) | |
tree | 14eeaec09f0e3eda2a4856675daebffed8da8fe5 | |
parent | 6ab5b0c382d66bc30724c04485c325d573858c0c (diff) |
Set LOB parameter capacity in runtime instead of in generated code
-rw-r--r-- | odb/oracle/statement.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
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: |