From 9758d7cdc98f0d948581fb5630c33e98e4b52855 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 6 Jan 2017 02:11:57 +0000 Subject: Use SQL hash for prepared statement names, increases reuse and avoids random reuse --- libpqpp/pq-prepared.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libpqpp/pq-prepared.h') diff --git a/libpqpp/pq-prepared.h b/libpqpp/pq-prepared.h index 0f745c9..d70a388 100644 --- a/libpqpp/pq-prepared.h +++ b/libpqpp/pq-prepared.h @@ -2,16 +2,14 @@ #define stuff #include "pq-command.h" -#include "pq-connection.h" namespace PQ { class PreparedStatement : public Command { protected: - PreparedStatement(Connection *, const std::string &, unsigned int, const DB::CommandOptions *); + PreparedStatement(Connection *, const std::string &, const DB::CommandOptions *); virtual ~PreparedStatement() = default; const char * prepare() const; - Connection::StatementHash hash; mutable const char * pstmt; }; } -- cgit v1.2.3