From 31c10cbfe0ebfb809654e91f651b4f0579078edc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sun, 23 Apr 2023 09:55:19 +0000 Subject: [PATCH] Fix compiler error --- lib/ProxySQL_Admin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 46a75d5dd..a5affe895 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -9644,7 +9644,7 @@ int ProxySQL_Admin::stats___save_mysql_query_digest_to_sqlite( int num_rows = resultset ? resultset->rows_count : digest_umap->size(); int max_bulk_row_idx = num_rows/32; max_bulk_row_idx=max_bulk_row_idx*32; - auto it = resultset ? (std::unordered_map::iterator)NULL : digest_umap->cbegin(); + auto it = resultset ? digest_umap->cend() : digest_umap->cbegin(); int i = 0; // If the function do not receives a resultset, it gets the values directly from the digest_umap while (resultset ? i != resultset->rows_count : it != digest_umap->end()) {