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
commitdaaf7b3facc18bc3073b0ffb245e1c86d8670b8b (patch)
tree3bf72e869b9e19098bdf5792654a02daa230b207 /libpqpp/pq-prepared.h
parentAPI change to pass command options through (diff)
downloadlibdbpp-postgresql-daaf7b3facc18bc3073b0ffb245e1c86d8670b8b.tar.bz2
libdbpp-postgresql-daaf7b3facc18bc3073b0ffb245e1c86d8670b8b.tar.xz
libdbpp-postgresql-daaf7b3facc18bc3073b0ffb245e1c86d8670b8b.zip
Use command options statement hash when it's availablelibdbpp-postgresql-1.1.0
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;
};
}