summaryrefslogtreecommitdiff
path: root/libpqpp/pq-connection.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 14:34:16 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 14:40:20 +0100
commitedddd401b6a658613fd5058b6ba0fad30813402d (patch)
tree228efaa682b23f1b0f6821efae7d298ffe65fe1a /libpqpp/pq-connection.cpp
parentDon't attempt to close cursors when in failed transaction (it's failed and re... (diff)
downloadlibdbpp-postgresql-edddd401b6a658613fd5058b6ba0fad30813402d.tar.bz2
libdbpp-postgresql-edddd401b6a658613fd5058b6ba0fad30813402d.tar.xz
libdbpp-postgresql-edddd401b6a658613fd5058b6ba0fad30813402d.zip
Rename SelectCommand to CursorSelectCommand
Diffstat (limited to 'libpqpp/pq-connection.cpp')
-rw-r--r--libpqpp/pq-connection.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/pq-connection.cpp b/libpqpp/pq-connection.cpp
index e6340d5..49867a4 100644
--- a/libpqpp/pq-connection.cpp
+++ b/libpqpp/pq-connection.cpp
@@ -1,6 +1,6 @@
#include "pq-connection.h"
#include "pq-error.h"
-#include "pq-selectcommand.h"
+#include "pq-cursorselectcommand.h"
#include "pq-modifycommand.h"
#include <unistd.h>
#include <poll.h>
@@ -97,7 +97,7 @@ PQ::Connection::ping() const
DB::SelectCommand *
PQ::Connection::newSelectCommand(const std::string & sql)
{
- return new SelectCommand(this, sql, pstmntNo++);
+ return new CursorSelectCommand(this, sql, pstmntNo++);
}
DB::ModifyCommand *
@@ -173,7 +173,7 @@ PQ::Connection::bulkUploadData(const char * data, size_t len) const
int64_t
PQ::Connection::insertId()
{
- SelectCommand getId(this, "SELECT lastval()", pstmntNo++);
+ CursorSelectCommand getId(this, "SELECT lastval()", pstmntNo++);
int64_t id = -1;
while (getId.fetch()) {
getId[0] >> id;