summaryrefslogtreecommitdiff
path: root/libpqpp/pq-cursorselectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 15:43:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 15:43:07 +0100
commit2798caa6c8737c4d745ccfa69bd291689ddf4a93 (patch)
treed4f937ac2495e386a1c9b104fc3b13781381bcb5 /libpqpp/pq-cursorselectcommand.h
parentRename SelectCommand to CursorSelectCommand (diff)
downloadlibdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.tar.bz2
libdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.tar.xz
libdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.zip
Introduce select base for different kinds of select
Diffstat (limited to 'libpqpp/pq-cursorselectcommand.h')
-rw-r--r--libpqpp/pq-cursorselectcommand.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/libpqpp/pq-cursorselectcommand.h b/libpqpp/pq-cursorselectcommand.h
index aafe4e1..6182d3f 100644
--- a/libpqpp/pq-cursorselectcommand.h
+++ b/libpqpp/pq-cursorselectcommand.h
@@ -2,6 +2,7 @@
#define PQ_CURSORSELECTCOMMAND_H
#include <selectcommand.h>
+#include "pq-selectbase.h"
#include "pq-command.h"
#include <vector>
#include <map>
@@ -9,7 +10,7 @@
namespace PQ {
class Connection;
class Column;
- class CursorSelectCommand : public DB::SelectCommand, public Command {
+ class CursorSelectCommand : public DB::SelectCommand, public SelectBase, public Command {
public:
CursorSelectCommand(Connection *, const std::string & sql, unsigned int no);
virtual ~CursorSelectCommand();
@@ -25,13 +26,10 @@ namespace PQ {
mutable bool executed;
mutable bool txOpened;
- int nTuples, tuple, fTuples;
- PGresult * execRes;
+ int fTuples;
std::string s_declare;
std::string s_fetch;
std::string s_close;
-
- friend class Column;
};
}