diff options
Diffstat (limited to 'odb/pgsql/query.hxx')
-rw-r--r-- | odb/pgsql/query.hxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/odb/pgsql/query.hxx b/odb/pgsql/query.hxx index d880111..42182d6 100644 --- a/odb/pgsql/query.hxx +++ b/odb/pgsql/query.hxx @@ -1,5 +1,4 @@ // file : odb/pgsql/query.hxx -// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_PGSQL_QUERY_HXX @@ -149,13 +148,14 @@ namespace odb kind_bool }; - clause_part (kind_type k): kind (k) {} - clause_part (kind_type k, const std::string& p): kind (k), part (p) {} + clause_part (kind_type k): kind (k), bool_part (false) {} + clause_part (kind_type k, const std::string& p) + : kind (k), part (p), bool_part (false) {} clause_part (bool p): kind (kind_bool), bool_part (p) {} kind_type kind; std::string part; // If kind is param, then part is conversion expr. - bool bool_part = false; + bool bool_part; }; query_base () @@ -1671,7 +1671,7 @@ namespace odb bind (bind_type* b) { b->type = bind::numeric; - b->buffer = buffer_.data (); + b->buffer = buffer_.data_ptr (); b->capacity = buffer_.capacity (); b->size = &size_; } @@ -1836,7 +1836,7 @@ namespace odb bind (bind_type* b) { b->type = bind::text; - b->buffer = buffer_.data (); + b->buffer = buffer_.data_ptr (); b->capacity = buffer_.capacity (); b->size = &size_; } @@ -1881,7 +1881,7 @@ namespace odb bind (bind_type* b) { b->type = bind::bytea; - b->buffer = buffer_.data (); + b->buffer = buffer_.data_ptr (); b->capacity = buffer_.capacity (); b->size = &size_; } @@ -1926,7 +1926,7 @@ namespace odb bind (bind_type* b) { b->type = bind::bit; - b->buffer = buffer_.data (); + b->buffer = buffer_.data_ptr (); b->capacity = buffer_.capacity (); b->size = &size_; } @@ -1970,7 +1970,7 @@ namespace odb bind (bind_type* b) { b->type = bind::varbit; - b->buffer = buffer_.data (); + b->buffer = buffer_.data_ptr (); b->capacity = buffer_.capacity (); b->size = &size_; } |