From beaee7f58b8d511945b08adf43b3a22fcd0e9cfd Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Fri, 27 Sep 2024 12:50:22 +0500 Subject: [PATCH] Fixed PgSQL commands counter size --- lib/PgSQL_Query_Processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PgSQL_Query_Processor.cpp b/lib/PgSQL_Query_Processor.cpp index e3427e712..e4fa0038e 100644 --- a/lib/PgSQL_Query_Processor.cpp +++ b/lib/PgSQL_Query_Processor.cpp @@ -642,7 +642,7 @@ SQLite3_result* PgSQL_Query_Processor::get_stats_commands_counters() { result->add_column_definition(SQLITE_TEXT, "cnt_5s"); result->add_column_definition(SQLITE_TEXT, "cnt_10s"); result->add_column_definition(SQLITE_TEXT, "cnt_INFs"); - for (int i = 0; i < MYSQL_COM_QUERY__UNINITIALIZED; i++) { + for (int i = 0; i < PGSQL_QUERY__UNINITIALIZED; i++) { char** pta = commands_counters[i]->get_row(); result->add_row(pta); commands_counters[i]->free_row(pta);