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 | e9ecbccaa6547cb067653e7240947a76cc60d8ed (patch) | |
tree | 99531b2014984151cf2f3dfc7bdc8ca5e234a600 /libpqpp/pq-bulkselectcommand.cpp | |
parent | Fix bug where prepared statement cache wasn't cleared on connection reset lea... (diff) | |
download | libdbpp-postgresql-e9ecbccaa6547cb067653e7240947a76cc60d8ed.tar.bz2 libdbpp-postgresql-e9ecbccaa6547cb067653e7240947a76cc60d8ed.tar.xz libdbpp-postgresql-e9ecbccaa6547cb067653e7240947a76cc60d8ed.zip |
Use SQL hash for prepared statement names, increases reuse and avoids random reuse
Diffstat (limited to 'libpqpp/pq-bulkselectcommand.cpp')
-rw-r--r-- | libpqpp/pq-bulkselectcommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpqpp/pq-bulkselectcommand.cpp b/libpqpp/pq-bulkselectcommand.cpp index d745e64..503d535 100644 --- a/libpqpp/pq-bulkselectcommand.cpp +++ b/libpqpp/pq-bulkselectcommand.cpp @@ -3,10 +3,10 @@ #include "pq-column.h" #include "pq-error.h" -PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, unsigned int no, const DB::CommandOptions * opts) : +PQ::BulkSelectCommand::BulkSelectCommand(Connection * conn, const std::string & sql, const DB::CommandOptions * opts) : DB::Command(sql), PQ::SelectBase(sql), - PQ::PreparedStatement(conn, sql, no, opts), + PQ::PreparedStatement(conn, sql, opts), executed(false) { } |