From 3db0852cae1053e60bebfd146610d76943e6cc38 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 14 Sep 2012 08:41:31 +0200 Subject: Indicate value cannot be NULL when initializing query parameter image --- odb/oracle/query.hxx | 52 ++++++++++++++++++++++++++-------------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/odb/oracle/query.hxx b/odb/oracle/query.hxx index 78fdb48..d6e5a6c 100644 --- a/odb/oracle/query.hxx +++ b/odb/oracle/query.hxx @@ -1294,8 +1294,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1330,8 +1330,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1366,9 +1366,9 @@ namespace odb void init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t size (0); - value_traits::set_image (image_, size, dummy, v); + value_traits::set_image (image_, size, is_null, v); size_ = static_cast (size); } @@ -1405,8 +1405,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1441,8 +1441,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1477,9 +1477,9 @@ namespace odb void init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t size (0); - value_traits::set_image (image_, size, dummy, v); + value_traits::set_image (image_, size, is_null, v); size_ = static_cast (size); } @@ -1516,8 +1516,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1563,8 +1563,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1610,8 +1610,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1657,8 +1657,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits::set_image (image_, is_null, v); } private: @@ -1706,10 +1706,10 @@ namespace odb void init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t size (0); value_traits::set_image ( - buf_.data (), buf_.capacity (), size, dummy, v); + buf_.data (), buf_.capacity (), size, is_null, v); size_ = static_cast (size); } @@ -1759,10 +1759,10 @@ namespace odb void init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t size (0); value_traits::set_image ( - buf_.data (), buf_.capacity (), size, dummy, v); + buf_.data (), buf_.capacity (), size, is_null, v); size_ = static_cast (size); } @@ -1812,10 +1812,10 @@ namespace odb void init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t size (0); value_traits::set_image ( - buf_.data (), buf_.capacity (), size, dummy, v); + buf_.data (), buf_.capacity (), size, is_null, v); size_ = static_cast (size); } -- cgit v1.1