aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-10-14 13:20:30 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-10-14 13:20:30 +0200
commitad7545cf9e795d7af0440fd3b5ab2eef075b539f (patch)
tree95c5c62b9470119479b91e09ed1ca334015f95b5
parent5f78950c5bae2bb0c6228e1596aa51edfd142547 (diff)
Add a RAW buffer type
This is required as OCI performs character set specific operations on string data. RAW data has no associated character set.
-rw-r--r--odb/oracle/oracle-types.hxx1
-rw-r--r--odb/oracle/statement.cxx25
2 files changed, 14 insertions, 12 deletions
diff --git a/odb/oracle/oracle-types.hxx b/odb/oracle/oracle-types.hxx
index 33e0f33..e340071 100644
--- a/odb/oracle/oracle-types.hxx
+++ b/odb/oracle/oracle-types.hxx
@@ -81,6 +81,7 @@ namespace odb
timestamp, // Buffer is a variable length char array.
string, // Buffer is a variable length char array.
nstring, // Buffer is a variable length char array.
+ raw, // Buffer is a variable length char array.
blob, // Bind is a callback.
clob, // Bind is a callback.
nclob, // Bind is a callback.
diff --git a/odb/oracle/statement.cxx b/odb/oracle/statement.cxx
index ab0068c..8435d1f 100644
--- a/odb/oracle/statement.cxx
+++ b/odb/oracle/statement.cxx
@@ -28,18 +28,19 @@ namespace odb
//
static ub4 sqlt_lookup[bind::last] =
{
- SQLT_INT,
- SQLT_UIN,
- SQLT_BFLOAT,
- SQLT_BDOUBLE,
- SQLT_VNU,
- SQLT_DAT,
- SQLT_TIMESTAMP,
- SQLT_CHR,
- SQLT_CHR,
- SQLT_BLOB,
- SQLT_CLOB,
- SQLT_CLOB
+ SQLT_INT, // bind::integer
+ SQLT_UIN, // bind::uinteger
+ SQLT_BFLOAT, // bind::binary_float
+ SQLT_BDOUBLE, // bind::binary_double
+ SQLT_VNU, // bind::number
+ SQLT_DAT, // bind::date
+ SQLT_TIMESTAMP, // bind::timestamp
+ SQLT_CHR, // bind::string
+ SQLT_CHR, // bind::nstring
+ SQLT_BIN, // bind::raw
+ SQLT_BLOB, // bind::blob
+ SQLT_CLOB, // bind::clob
+ SQLT_CLOB // bind::nclob
};
static sb4