From 5886b037ecf017819406a11588b627d16e01e38f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Apr 2016 15:43:07 +0100 Subject: Introduce select base for different kinds of select --- libpqpp/pq-cursorselectcommand.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libpqpp/pq-cursorselectcommand.h') 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 +#include "pq-selectbase.h" #include "pq-command.h" #include #include @@ -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; }; } -- cgit v1.2.3