From a6be6d86457a0b5dc982a0d4c7128a510313506d 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