Commit 6dc49f32 authored by louiz’'s avatar louiz’

Fix a few warnings

parent 414bbca0
...@@ -73,12 +73,12 @@ class PostgresqlStatement: public Statement ...@@ -73,12 +73,12 @@ class PostgresqlStatement: public Statement
this->params.push_back(data); this->params.push_back(data);
return true; return true;
} }
bool bind_int64(const int pos, const std::int64_t value) override bool bind_int64(const int, const std::int64_t value) override
{ {
this->params.push_back(std::to_string(value)); this->params.push_back(std::to_string(value));
return true; return true;
} }
bool bind_null(const int pos) override bool bind_null(const int) override
{ {
this->params.push_back("NULL"); this->params.push_back("NULL");
return true; return true;
...@@ -99,8 +99,9 @@ private: ...@@ -99,8 +99,9 @@ private:
} }
log_debug("body: ", body); log_debug("body: ", body);
const int param_size = static_cast<int>(this->params.size());
this->result = PQexecParams(this->conn, this->body.data(), this->result = PQexecParams(this->conn, this->body.data(),
this->params.size(), param_size,
nullptr, nullptr,
params.data(), params.data(),
nullptr, nullptr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment