summaryrefslogtreecommitdiff
path: root/libpqpp/pq-modifycommand.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-02-25 22:24:53 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2016-02-25 22:24:53 +0000
commita6be6d86457a0b5dc982a0d4c7128a510313506d (patch)
tree1296ebbdfcd3f326013d2730e91be0c279cec0de /libpqpp/pq-modifycommand.h
parentRefactor to use std::string as buffer and increase test coverage (diff)
downloadlibdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.tar.bz2
libdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.tar.xz
libdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.zip
Reuse prepared statements
Diffstat (limited to 'libpqpp/pq-modifycommand.h')
-rw-r--r--libpqpp/pq-modifycommand.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h
index 5f48074..33fd333 100644
--- a/libpqpp/pq-modifycommand.h
+++ b/libpqpp/pq-modifycommand.h
@@ -3,9 +3,9 @@
#include <modifycommand.h>
#include "pq-command.h"
+#include "pq-connection.h"
namespace PQ {
- class Connection;
class ModifyCommand : public DB::ModifyCommand, public Command {
public:
ModifyCommand(Connection *, const std::string & sql, unsigned int no);
@@ -14,8 +14,8 @@ namespace PQ {
unsigned int execute(bool) override;
private:
- void prepare() const;
- mutable bool prepared;
+ Connection::PreparedStatements::const_iterator prepare() const;
+ const Connection::StatementHash hash;
};
}