]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#1369] Fixed some minor postgresql issues
authorThomas Markwalder <tmark@isc.org>
Wed, 5 Aug 2020 20:49:36 +0000 (16:49 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 12 Aug 2020 19:19:36 +0000 (15:19 -0400)
src/lib/pgsql/pgsql_connection.cc
src/lib/pgsql/pgsql_connection.h

index 7af6be231378ea98c76471c09b3c24b04302e50e..21a36f992fb8bfc9a18e28d6d88c82def8703e03 100644 (file)
@@ -316,7 +316,7 @@ PgSqlConnection::compareError(const PgSqlResult& r, const char* error_state) {
 
 void
 PgSqlConnection::checkStatementError(const PgSqlResult& r,
-                                     PgSqlTaggedStatement& statement) const {
+                                     PgSqlTaggedStatement& statement) {
     int s = PQresultStatus(r);
     if (s != PGRES_COMMAND_OK && s != PGRES_TUPLES_OK) {
         // We're testing the first two chars of SQLSTATE, as this is the
index b02346eb81d1eb49d6525d2a295a5896879fc4fc..fb7764cd8afadc919e776f2c1ebe7400c3e89fac 100644 (file)
@@ -411,7 +411,7 @@ public:
     ///
     /// @throw isc::db::DbOperationError Detailed PostgreSQL failure
     void checkStatementError(const PgSqlResult& r,
-                             PgSqlTaggedStatement& statement) const;
+                             PgSqlTaggedStatement& statement);
 
     /// @brief PgSql connection handle
     ///