From c8bdcc9bac7f0d9f8a5b3b4fd544e5fbe6a9d668 Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 10 Jan 2014 21:37:46 +0000 Subject: Improvements to popenrw and add popenrwe for the stderr pipe too Improve exception when loading a library fails Fix a handful of ingeniously located memory leaks --- libpqpp/selectcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpqpp') diff --git a/libpqpp/selectcommand.cpp b/libpqpp/selectcommand.cpp index 23be577..9854216 100644 --- a/libpqpp/selectcommand.cpp +++ b/libpqpp/selectcommand.cpp @@ -58,7 +58,7 @@ PQ::SelectCommand::execute() } c->beginTx(); txOpened = true; - c->checkResult( + execRes = c->checkResult( PQexecParams(c->conn, psql.c_str(), values.size(), NULL, &values.front(), &lengths.front(), &formats.front(), 0), PGRES_COMMAND_OK); fetchTuples(); -- cgit v1.2.3