From 393967f511a3033e34454f3f1eb85889c1b9aa13 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sun, 18 Jan 2026 14:57:48 +0000 Subject: [PATCH] fix: Use row->cnt instead of row->fields_count --- lib/Query_Tool_Handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Query_Tool_Handler.cpp b/lib/Query_Tool_Handler.cpp index ef1f2dd8a..ca8fa44dc 100644 --- a/lib/Query_Tool_Handler.cpp +++ b/lib/Query_Tool_Handler.cpp @@ -693,7 +693,7 @@ json Query_Tool_Handler::execute_tool(const std::string& tool_name, const json& json results = json::array(); if (resultset && resultset->rows_count > 0) { for (const auto& row : resultset->rows) { - if (row->fields_count > 0 && row->fields[0]) { + if (row->cnt > 0 && row->fields[0]) { json schema_row = json::array(); schema_row.push_back(std::string(row->fields[0])); results.push_back(schema_row);