diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-14 08:41:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-09-14 08:41:30 +0200 |
commit | 82744db6e41e138bad813b5a9bcec75d31c98cf7 (patch) | |
tree | f4c2a93257b329ec1ca3e72ef1a37c4a4da3f46a | |
parent | 55a70a3a283fe6a55f73ba6935336ff0eb8f6dbd (diff) |
Indicate value cannot be NULL when initializing query parameter image
-rw-r--r-- | odb/sqlite/query.hxx | 16 |
1 files 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<T, id_integer>::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits<T, id_integer>::set_image (image_, is_null, v); } private: @@ -1200,8 +1200,8 @@ namespace odb void init (const T& v) { - bool dummy; - value_traits<T, id_real>::set_image (image_, dummy, v); + bool is_null (false); // Can't be NULL. + value_traits<T, id_real>::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<T, id_text>::set_image (buffer_, size_, dummy, v); + value_traits<T, id_text>::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<T, id_blob>::set_image (buffer_, size_, dummy, v); + value_traits<T, id_blob>::set_image (buffer_, size_, is_null, v); return cap != buffer_.capacity (); } |