diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-25 22:24:53 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-02-25 22:24:53 +0000 |
commit | a6be6d86457a0b5dc982a0d4c7128a510313506d (patch) | |
tree | 1296ebbdfcd3f326013d2730e91be0c279cec0de /libpqpp/pq-modifycommand.h | |
parent | Refactor to use std::string as buffer and increase test coverage (diff) | |
download | libdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.tar.bz2 libdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.tar.xz libdbpp-postgresql-a6be6d86457a0b5dc982a0d4c7128a510313506d.zip |
Reuse prepared statements
Diffstat (limited to 'libpqpp/pq-modifycommand.h')
-rw-r--r-- | libpqpp/pq-modifycommand.h | 6 |
1 files changed, 3 insertions, 3 deletions
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 <modifycommand.h> #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; }; } |