diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-09-23 11:12:54 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-09-23 11:12:54 +0200 |
commit | 992ec5b8a4f22204c935c5072c6ba4de0018959a (patch) | |
tree | 1e72f90996c47bbd9b9f4c548e9222419230da18 | |
parent | d6a5822a85869d91c7b8d571f9aec9ab8f5ddc73 (diff) |
Refactor callback union declaration to odb::oracle namespace scope
-rw-r--r-- | odb/oracle/oracle-types.hxx | 12 |
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. |