aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/oracle/oracle-types.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/odb/oracle/oracle-types.hxx b/odb/oracle/oracle-types.hxx
index c3d95d3..a3b45c6 100644
--- a/odb/oracle/oracle-types.hxx
+++ b/odb/oracle/oracle-types.hxx
@@ -50,6 +50,12 @@ namespace odb
ub4 size, // [in] The result data size in bytes.
chunk_position); // [in] The position of this chunk.
+ union lob_callback
+ {
+ param_callback_type param;
+ result_callback_type result;
+ };
+
struct bind
{
ub2 type; // The type stored by buffer. This must be an external
@@ -64,11 +70,7 @@ namespace odb
// buffer.
sb2* indicator; // Pointer to an OCI indicator variable.
- union
- {
- param_callback_type param;
- result_callback_type result;
- } callback;
+ lob_callback callback;
// This pointer is provided to the user through the context argument
// in both parameter and result callback functions.