]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
fixed postgresql connection preapared statements initialization
authorRazvan Becheriu <razvan@isc.org>
Wed, 10 Apr 2019 15:13:44 +0000 (18:13 +0300)
committerRazvan Becheriu <razvan@isc.org>
Fri, 12 Apr 2019 12:10:41 +0000 (15:10 +0300)
src/lib/pgsql/pgsql_connection.cc
src/lib/pgsql/pgsql_connection.h

index b130233b05e3f9a8f4704d84444bd5a8a7ebbd83..593d0ea964025cd3b5f808e34040835c7d462f95 100644 (file)
@@ -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
+
index e9b33927c4d874cbf689b60d5492fbbbb48d8cf7..0bf72549a4906ca386426a4fb3b2fc5e7b7e47c9 100644 (file)
@@ -425,7 +425,7 @@ private:
     mutable isc::dhcp::ThreadResourceMgr<PgSqlHolder> handles_;
 };
 
-}; // end of isc::db namespace
-}; // end of isc namespace
+}  // namespace db
+}  // namespace isc
 
 #endif // PGSQL_CONNECTION_H