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
commit25a8f2a606dfbb1c4960f2ef1a14e64667e691d7 (patch)
tree889c020a1681e1c9088c3af45d95ea29c9061f90 /libpqpp/pq-modifycommand.h
parentRefactor to use std::string as buffer and increase test coverage (diff)
downloadlibdbpp-postgresql-25a8f2a606dfbb1c4960f2ef1a14e64667e691d7.tar.bz2
libdbpp-postgresql-25a8f2a606dfbb1c4960f2ef1a14e64667e691d7.tar.xz
libdbpp-postgresql-25a8f2a606dfbb1c4960f2ef1a14e64667e691d7.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;
};
}