summaryrefslogtreecommitdiff
path: root/libpqpp/pq-bulkselectcommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libpqpp/pq-bulkselectcommand.cpp')
-rw-r--r--libpqpp/pq-bulkselectcommand.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp
index ff9f2f4..de2ecb4 100644
--- a/libpqpp/pq-bulkselectcommand.cpp
+++ b/libpqpp/pq-bulkselectcommand.cpp
@@ -14,11 +14,11 @@ void
PQ::BulkSelectCommand::execute()
{
if (!executed) {
- execRes = c->checkResult(PQexecPrepared(c->conn, prepare(), values.size(), &values.front(), &lengths.front(),
- &formats.front(), binary),
+ execRes = c->checkResult(PQexecPrepared(c->conn, prepare(), static_cast<int>(values.size()), &values.front(),
+ &lengths.front(), &formats.front(), binary),
PGRES_TUPLES_OK);
- nTuples = PQntuples(execRes);
- tuple = -1;
+ nTuples = static_cast<decltype(nTuples)>(PQntuples(execRes));
+ tuple = static_cast<decltype(tuple)>(-1);
createColumns(execRes);
executed = true;
}