aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-09-27 13:47:53 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-09-27 13:47:53 +0200
commit0abb38c66912f53a7cdf48c697cb3fa7f4aa6cd1 (patch)
tree33a67d4be1a50576b563cb722c774270995dd835
parentb35e870f4cd7e873f711f30a773ee82c3fd0c428 (diff)
Add our own national character buffer type identifiers
-rw-r--r--odb/oracle/oracle-fwd.hxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/oracle/oracle-fwd.hxx b/odb/oracle/oracle-fwd.hxx
index bc400d1..a0cd2ed 100644
--- a/odb/oracle/oracle-fwd.hxx
+++ b/odb/oracle/oracle-fwd.hxx
@@ -24,6 +24,15 @@ typedef struct OCIStmt OCIStmt;
typedef struct OCIAuthInfo OCIAuthInfo;
typedef struct OCITrans OCITrans;
+// Define an external type identifier for the national character types.
+// These are used exclusively for identifying national character encoded
+// buffers while setting the character set form of an OCIBind or OCIDefine
+// handle. They are never passed to the OCI API.
+//
+extern ub2 SQLT_NCHAR;
+extern ub2 SQLT_NVARCHAR2;
+extern ub2 SQLT_NCLOB;
+
#include <odb/post.hxx>
#endif // ODB_ORACLE_ORACLE_FWD_HXX