From: Razvan Becheriu Date: Wed, 10 Apr 2019 15:13:44 +0000 (+0300) Subject: fixed postgresql connection preapared statements initialization X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41f1501a5a9442fa561ab811f245a7b3fcf7f674;p=thirdparty%2Fkea.git fixed postgresql connection preapared statements initialization --- diff --git a/src/lib/pgsql/pgsql_connection.cc b/src/lib/pgsql/pgsql_connection.cc index b130233b05..593d0ea964 100644 --- a/src/lib/pgsql/pgsql_connection.cc +++ b/src/lib/pgsql/pgsql_connection.cc @@ -166,6 +166,7 @@ PgSqlConnection::~PgSqlConnection() { void PgSqlConnection::prepareStatement(const PgSqlTaggedStatement& statement) { statements_.push_back(&statement); + prepared_ = true; } void @@ -393,5 +394,6 @@ PgSqlConnection::rollback() { } } -}; // end of isc::db namespace -}; // end of isc namespace +} // namespace db +} // namespace isc + diff --git a/src/lib/pgsql/pgsql_connection.h b/src/lib/pgsql/pgsql_connection.h index e9b33927c4..0bf72549a4 100644 --- a/src/lib/pgsql/pgsql_connection.h +++ b/src/lib/pgsql/pgsql_connection.h @@ -425,7 +425,7 @@ private: mutable isc::dhcp::ThreadResourceMgr handles_; }; -}; // end of isc::db namespace -}; // end of isc namespace +} // namespace db +} // namespace isc #endif // PGSQL_CONNECTION_H