diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-06 02:11:57 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-08 19:33:31 +0000 |
commit | 9758d7cdc98f0d948581fb5630c33e98e4b52855 (patch) | |
tree | 08f603e35235f8c8fb8d0da022830138f952fddf /libpqpp/pq-modifycommand.h | |
parent | Fix bug where prepared statement cache wasn't cleared on connection reset lea... (diff) | |
download | libdbpp-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-modifycommand.h')
-rw-r--r-- | libpqpp/pq-modifycommand.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h index 4f0a481..18f5a8b 100644 --- a/libpqpp/pq-modifycommand.h +++ b/libpqpp/pq-modifycommand.h @@ -8,7 +8,7 @@ namespace PQ { class ModifyCommand : public DB::ModifyCommand, public PreparedStatement { public: - ModifyCommand(Connection *, const std::string & sql, unsigned int no, const DB::CommandOptions *); + ModifyCommand(Connection *, const std::string & sql, const DB::CommandOptions *); virtual ~ModifyCommand(); unsigned int execute(bool) override; |