diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 14:38:06 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-14 14:38:06 +0200 |
commit | a35148a92572c6ad3a4bbd107cf3a14ac464dfac (patch) | |
tree | bf2433d4b142e7504c602a5ab7f737a1ea7c63fe | |
parent | 3ee62fe4711ed3f3621fb3b94607a24783b5442e (diff) |
Small bug fixes and aesthetic changes
-rw-r--r-- | odb/oracle/traits.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/odb/oracle/traits.hxx b/odb/oracle/traits.hxx index efe35b1..6bcc1ac 100644 --- a/odb/oracle/traits.hxx +++ b/odb/oracle/traits.hxx @@ -8,6 +8,9 @@ #include <odb/pre.hxx> +// @@ +#include <iostream> + #include <string> #include <vector> #include <cstddef> // std::size_t @@ -441,7 +444,7 @@ namespace odb struct big_int_value_traits<T, false> { static void - set_value (T v, const char* b, bool is_null) + set_value (T& v, const char* b, bool is_null) { if (!is_null) v = static_cast<T> (details::number_to_int64 (b)); @@ -461,7 +464,7 @@ namespace odb struct big_int_value_traits<T, true> { static void - set_value (T v, const char* b, bool is_null) + set_value (T& v, const char* b, bool is_null) { if (!is_null) v = static_cast<T> (details::number_to_uint64 (b)); @@ -508,7 +511,7 @@ namespace odb } static void - set_image (char*, + set_image (char* b, std::size_t c, std::size_t& n, bool& is_null, @@ -738,7 +741,8 @@ namespace odb c_string_lob_value_traits { }; - // std::vector<char> (buffer) specialization. + + // std::vector<char> (buffer) specialization for BLOBs. // template <> struct default_value_traits<std::vector<char>, id_blob> |