From 82744db6e41e138bad813b5a9bcec75d31c98cf7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 14 Sep 2012 08:41:30 +0200 Subject: Indicate value cannot be NULL when initializing query parameter image --- odb/sqlite/query.hxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx index 5991c51..ffd3559 100644 --- a/odb/sqlite/query.hxx +++ b/odb/sqlite/query.hxx @@ -1166,8 +1166,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: @@ -1200,8 +1200,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: @@ -1234,9 +1234,9 @@ namespace odb bool init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t cap (buffer_.capacity ()); - value_traits::set_image (buffer_, size_, dummy, v); + value_traits::set_image (buffer_, size_, is_null, v); return cap != buffer_.capacity (); } @@ -1271,9 +1271,9 @@ namespace odb bool init (const T& v) { - bool dummy; + bool is_null (false); // Can't be NULL. std::size_t cap (buffer_.capacity ()); - value_traits::set_image (buffer_, size_, dummy, v); + value_traits::set_image (buffer_, size_, is_null, v); return cap != buffer_.capacity (); } -- cgit v1.1