diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-11 08:25:30 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 13:12:02 +0200 |
commit | d8227f949940cd83ebf7d349b1e97d116474758b (patch) | |
tree | 807a400d92462072004a2c431e94aa999dc5bb0b /odb/oracle/details/number.hxx | |
parent | 6a2421094edb84224b0c7d02690522f3f7b8a86c (diff) |
Allow for size to be returned from big_int set_image functions
The OCI interface requires size information for any buffer passed to its bind
interface. By adding a return path for this data, we avert any need to obtain
this from the actual VARNUM binary data using messy byte manipulation.
Diffstat (limited to 'odb/oracle/details/number.hxx')
-rw-r--r-- | odb/oracle/details/number.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/odb/oracle/details/number.hxx b/odb/oracle/details/number.hxx index fe355da..90fb038 100644 --- a/odb/oracle/details/number.hxx +++ b/odb/oracle/details/number.hxx @@ -7,6 +7,9 @@ #define ODB_ORACLE_NUMBER_HXX #include <odb/pre.hxx> + +#include <cstddef> // std::size_t + #include <odb/oracle/details/export.hxx> namespace odb @@ -27,13 +30,13 @@ namespace odb number_to_int64 (const char* buffer); LIBODB_ORACLE_EXPORT void - int64_to_number (char* buffer, long long value); + int64_to_number (char* buffer, std::size_t& n, long long val); LIBODB_ORACLE_EXPORT unsigned long long number_to_uint64 (const char* buffer); LIBODB_ORACLE_EXPORT void - uint64_to_number (char* buffer, unsigned long long value); + uint64_to_number (char* buffer, std::size_t& n, unsigned long long val); } } } |