From eab3a1beba707e9f531a250a5c74a6ba462aa4fc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Apr 2016 14:34:16 +0100 Subject: Rename SelectCommand to CursorSelectCommand --- libpqpp/pq-connection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpqpp/pq-connection.cpp') 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 #include @@ -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; -- cgit v1.2.3