summaryrefslogtreecommitdiff
path: root/libpqpp/pq-prepared.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-01-06 02:11:57 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-01-08 19:33:31 +0000
commit9758d7cdc98f0d948581fb5630c33e98e4b52855 (patch)
tree08f603e35235f8c8fb8d0da022830138f952fddf /libpqpp/pq-prepared.h
parentFix bug where prepared statement cache wasn't cleared on connection reset lea... (diff)
downloadlibdbpp-postgresql-9758d7cdc98f0d948581fb5630c33e98e4b52855.tar.bz2
libdbpp-postgresql-9758d7cdc98f0d948581fb5630c33e98e4b52855.tar.xz
libdbpp-postgresql-9758d7cdc98f0d948581fb5630c33e98e4b52855.zip
Use SQL hash for prepared statement names, increases reuse and avoids random reuse
Diffstat (limited to 'libpqpp/pq-prepared.h')
-rw-r--r--libpqpp/pq-prepared.h4
1 files changed, 1 insertions, 3 deletions
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;
};
}