From daaf7b3facc18bc3073b0ffb245e1c86d8670b8b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 1 Jan 2017 20:08:22 +0000 Subject: Use command options statement hash when it's available --- libpqpp/pq-prepared.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpqpp/pq-prepared.h') 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; }; } -- cgit v1.2.3