aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/oracle-types.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-09-07 15:09:23 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-09-07 15:09:23 +0200
commit4c38968b151af31ebd9ffa381f7a00df7183a8d6 (patch)
tree20687a5976705638926992858aade06434d34f29 /odb/oracle/oracle-types.hxx
parentfeed84023d4bba8b3de84f1d64007e9c4428681b (diff)
Add bind structures
Diffstat (limited to 'odb/oracle/oracle-types.hxx')
-rw-r--r--odb/oracle/oracle-types.hxx34
1 files changed, 34 insertions, 0 deletions
diff --git a/odb/oracle/oracle-types.hxx b/odb/oracle/oracle-types.hxx
new file mode 100644
index 0000000..70006c6
--- /dev/null
+++ b/odb/oracle/oracle-types.hxx
@@ -0,0 +1,34 @@
+// file : odb/oracle/oracle-types.hxx
+// author : Constantin Michael <constantin@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#ifndef ODB_ORACLE_ORACLE_TYPES_HXX
+#define ODB_ORACLE_ORACLE_TYPES_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/oracle/version.hxx>
+#include <odb/oracle/oracle-fwd.hxx>
+
+namespace odb
+{
+ namespace oracle
+ {
+ struct bind
+ {
+ ub2 type; // The type stored in the memory pointed to by buffer
+ // This must be an external OCI type identifier
+ // of the form SQLT_XXX.
+ void* buffer;
+ ub2* size; // The number of bytes of data contained by buffer.
+ sb4 capacity; // The maximum number of bytes that can be stored in
+ // buffer.
+ sb2* indicator; // Pointer to an OCI indicator variable.
+ };
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_ORACLE_ORACLE_TYPES_HXX