From 25a8f2a606dfbb1c4960f2ef1a14e64667e691d7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 25 Feb 2016 22:24:53 +0000 Subject: Reuse prepared statements --- libpqpp/pq-modifycommand.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libpqpp/pq-modifycommand.h') diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h index 5f48074..33fd333 100644 --- a/libpqpp/pq-modifycommand.h +++ b/libpqpp/pq-modifycommand.h @@ -3,9 +3,9 @@ #include #include "pq-command.h" +#include "pq-connection.h" namespace PQ { - class Connection; class ModifyCommand : public DB::ModifyCommand, public Command { public: ModifyCommand(Connection *, const std::string & sql, unsigned int no); @@ -14,8 +14,8 @@ namespace PQ { unsigned int execute(bool) override; private: - void prepare() const; - mutable bool prepared; + Connection::PreparedStatements::const_iterator prepare() const; + const Connection::StatementHash hash; }; } -- cgit v1.2.3