diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-19 21:25:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-19 21:25:02 +0000 |
commit | 0bf706059f8a6df882cac3d6e7e976f4432b4271 (patch) | |
tree | 69d6641af24d31227ed616bf9c0c9ee1f27ea167 /libpqpp/pq-modifycommand.cpp | |
parent | Build most things by default (diff) | |
download | libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.tar.bz2 libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.tar.xz libdbpp-postgresql-0bf706059f8a6df882cac3d6e7e976f4432b4271.zip |
Refactor to use std::string as buffer and increase test coverage
Diffstat (limited to 'libpqpp/pq-modifycommand.cpp')
-rw-r--r-- | libpqpp/pq-modifycommand.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-modifycommand.cpp b/libpqpp/pq-modifycommand.cpp index e08057a..4c4ca0c 100644 --- a/libpqpp/pq-modifycommand.cpp +++ b/libpqpp/pq-modifycommand.cpp @@ -32,7 +32,7 @@ unsigned int PQ::ModifyCommand::execute(bool anc) { prepare(); - PGresult * res = PQexecPrepared(c->conn, stmntName.c_str(), values.size(), &values.front(), &lengths.front(), &formats.front(), 0); + PGresult * res = PQexecPrepared(c->conn, stmntName.c_str(), values.size(), &values.front(), &lengths.front(), NULL, 0); c->checkResult(res, PGRES_COMMAND_OK, PGRES_TUPLES_OK); unsigned int rows = atoi(PQcmdTuples(res)); PQclear(res); |