summaryrefslogtreecommitdiff
path: root/libpqpp/pq-prepared.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 20:08:22 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-01 20:08:22 +0000
commit409aeefb61795aa8f524d4371800a5bebb66a2e4 (patch)
tree7540ed88071dd5c7ebbae697171e3afc571a2a02 /libpqpp/pq-prepared.h
parentAPI change to pass command options through (diff)
downloadlibdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.tar.bz2
libdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.tar.xz
libdbpp-postgresql-409aeefb61795aa8f524d4371800a5bebb66a2e4.zip
Use command options statement hash when it's available
Diffstat (limited to 'libpqpp/pq-prepared.h')
-rw-r--r--libpqpp/pq-prepared.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpqpp/pq-prepared.h b/libpqpp/pq-prepared.h
index 1f6e028..0f745c9 100644
--- a/libpqpp/pq-prepared.h
+++ b/libpqpp/pq-prepared.h
@@ -2,14 +2,16 @@
#define stuff
#include "pq-command.h"
+#include "pq-connection.h"
namespace PQ {
class PreparedStatement : public Command {
protected:
- PreparedStatement(Connection *, const std::string &, unsigned int);
+ PreparedStatement(Connection *, const std::string &, unsigned int, const DB::CommandOptions *);
virtual ~PreparedStatement() = default;
const char * prepare() const;
+ Connection::StatementHash hash;
mutable const char * pstmt;
};
}