summaryrefslogtreecommitdiff
path: root/libpqpp/pq-bulkselectcommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 18:48:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 18:48:23 +0100
commit56de3f5f9768396525669af327fd00d36e621ada (patch)
tree385bc028607b5d573a87ab2da861c06596fb61cf /libpqpp/pq-bulkselectcommand.h
parentSupport bulk selects which don't use cursors, always use of RETURNING (diff)
downloadlibdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.bz2
libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.xz
libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.zip
Use prepared statements for bulk selects
Diffstat (limited to 'libpqpp/pq-bulkselectcommand.h')
-rw-r--r--libpqpp/pq-bulkselectcommand.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/libpqpp/pq-bulkselectcommand.h b/libpqpp/pq-bulkselectcommand.h
index aeda42d..58b01aa 100644
--- a/libpqpp/pq-bulkselectcommand.h
+++ b/libpqpp/pq-bulkselectcommand.h
@@ -3,14 +3,14 @@
#include <selectcommand.h>
#include "pq-selectbase.h"
-#include "pq-command.h"
+#include "pq-prepared.h"
#include <vector>
#include <map>
namespace PQ {
class Connection;
class Column;
- class BulkSelectCommand : public DB::SelectCommand, public SelectBase, public Command {
+ class BulkSelectCommand : public DB::SelectCommand, public SelectBase, public PreparedStatement {
public:
BulkSelectCommand(Connection *, const std::string & sql, unsigned int no);
virtual ~BulkSelectCommand();
@@ -20,7 +20,6 @@ namespace PQ {
private:
mutable bool executed;
- std::string preparedSql;
};
}