From a35148a92572c6ad3a4bbd107cf3a14ac464dfac Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Fri, 14 Oct 2011 14:38:06 +0200 Subject: Small bug fixes and aesthetic changes --- odb/oracle/traits.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'odb/oracle') 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 +// @@ +#include + #include #include #include // std::size_t @@ -441,7 +444,7 @@ namespace odb struct big_int_value_traits { 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 (details::number_to_int64 (b)); @@ -461,7 +464,7 @@ namespace odb struct big_int_value_traits { 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 (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 (buffer) specialization. + + // std::vector (buffer) specialization for BLOBs. // template <> struct default_value_traits, id_blob> -- cgit v1.1