aboutsummaryrefslogtreecommitdiff
path: root/odb
diff options
context:
space:
mode:
Diffstat (limited to 'odb')
-rw-r--r--odb/sqlite/query.hxx16
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 ();
}