diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-20 10:13:51 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-20 10:13:51 +0200 |
commit | a64b2d953da436bdca5cf35329d10fd95e1ae860 (patch) | |
tree | 41895467ab26cee1f2d8a685367b9329dd6d31ed /odb/oracle/statement.cxx | |
parent | 3f98883f49d8f0823e6d2d0fca1c5ac87a320f89 (diff) |
Use SQLT_NUM instead of SQLT_VNU OCI type due to inconsistent buffer lengths
The size returned by OCI into the bound rlen parameter of a SQLT_VNU buffer
does not include the additional length byte. This causes problems with images
that are shared across multiple statements in ODB, such as the object_id
image of containers.
Diffstat (limited to 'odb/oracle/statement.cxx')
-rw-r--r-- | odb/oracle/statement.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx index 7233e05..d63e4a7 100644 --- a/odb/oracle/statement.cxx +++ b/odb/oracle/statement.cxx @@ -33,7 +33,7 @@ namespace odb SQLT_UIN, // bind::uinteger SQLT_BFLOAT, // bind::binary_float SQLT_BDOUBLE, // bind::binary_double - SQLT_VNU, // bind::number + SQLT_NUM, // bind::number SQLT_DAT, // bind::date SQLT_TIMESTAMP, // bind::timestamp SQLT_CHR, // bind::string @@ -53,7 +53,7 @@ namespace odb SQLT_UIN, // bind::uinteger SQLT_BFLOAT, // bind::binary_float SQLT_BDOUBLE, // bind::binary_double - SQLT_VNU, // bind::number + SQLT_NUM, // bind::number SQLT_DAT, // bind::date SQLT_TIMESTAMP, // bind::timestamp SQLT_CHR, // bind::string |