From 094ad7bb4400e11f2c4b1b9089d558281e2f50c6 Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Mon, 10 Feb 2025 18:48:59 +0500 Subject: [PATCH] Code cleanup --- include/PgSQL_Connection.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/include/PgSQL_Connection.h b/include/PgSQL_Connection.h index 8ef2b9878..385683eaa 100644 --- a/include/PgSQL_Connection.h +++ b/include/PgSQL_Connection.h @@ -278,13 +278,6 @@ public: void fill_client_internal_session(nlohmann::json &j, int idx); }; -enum pgsql_charset_action { - POSTGRESQL_CHARSET_ACTION_UNKNOWN, - POSTGRESQL_CHARSET_ACTION_NAMES, - POSTGRESQL_CHARSET_ACTION_CHARSET, - POSTGRESQL_CHARSET_ACTION_CONNECT_START -}; - class PgSQL_Connection_userinfo { private: uint64_t compute_hash(); @@ -336,7 +329,7 @@ class PgSQL_Connection_Placeholder { PgSQL_Conn_Param conn_params; PgSQL_Variable variables[PGSQL_NAME_LAST_HIGH_WM]; - uint32_t var_hash[PGSQL_NAME_LAST_HIGH_WM]; + uint32_t var_hash[PGSQL_NAME_LAST_HIGH_WM] = {0}; // for now we store possibly missing variables in the lower range // we may need to fix that, but this will cost performance bool var_absent[PGSQL_NAME_LAST_HIGH_WM] = {false};