From: Marcin Siodelski Date: Mon, 6 Feb 2023 13:58:56 +0000 (+0100) Subject: [#2734] Code cleanup X-Git-Tag: Kea-2.3.5~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ede26cece0b9c334fa95d699f3f10e4ae14bace6;p=thirdparty%2Fkea.git [#2734] Code cleanup Edits in the log message definition and the whitespace removal. --- diff --git a/src/lib/database/db_messages.mes b/src/lib/database/db_messages.mes index 464afe568c..acec88cd94 100644 --- a/src/lib/database/db_messages.mes +++ b/src/lib/database/db_messages.mes @@ -83,8 +83,8 @@ any of these INSERT statements fail. % DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED tcp_user_timeout is not supported in this PostgreSQL version This warning message is issued when a user has configured the tcp_user_timeout parameter in the connection to the PostgreSQL database but the installed database -does not support this parameter. This parameter is supported by the PostgreSQL -version 12 or later. The parameter setting will be ignored. +does not support this parameter. It is supported by the PostgreSQL version 12 or later. +The parameter setting will be ignored. % DATABASE_TO_JSON_BOOLEAN_ERROR Internal logic error: invalid boolean value found in database connection parameters: %1=%2 This error message is printed when conversion to JSON of the internal state is requested, diff --git a/src/lib/pgsql/pgsql_connection.cc b/src/lib/pgsql/pgsql_connection.cc index b0f309f3f3..753ee0a4be 100644 --- a/src/lib/pgsql/pgsql_connection.cc +++ b/src/lib/pgsql/pgsql_connection.cc @@ -300,8 +300,6 @@ PgSqlConnection::openDatabaseInternal(bool logging) { conn_.setConnection(new_conn); } - - bool PgSqlConnection::compareError(const PgSqlResult& r, const char* error_state) { const char* sqlstate = PQresultErrorField(r, PG_DIAG_SQLSTATE);