From b5b3dfb4baf0ffd0b106ffb24ec3bcb38623c723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez=20Parra?= Date: Thu, 1 Dec 2022 16:04:51 +0100 Subject: [PATCH] Fix offset in deprecate_eof_cache_t iterating through inserted values --- .../deprecate_eof_support/deprecate_eof_cache-t.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp b/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp index 7ca331d42..3517b49b7 100644 --- a/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp +++ b/test/tap/tests_with_deps/deprecate_eof_support/deprecate_eof_cache-t.cpp @@ -141,9 +141,10 @@ int main(int argc, char** argv) { // Load query rules to runtime MYSQL_QUERY(proxy_admin, "LOAD MYSQL QUERY RULES TO RUNTIME"); - for (auto id = 0; id < c_operations; id++) { + for (auto i = 0; i < c_operations; i++) { int rnd_op = rand() % c_operations; + const auto id = i + 1; const std::string& t_select_query = queries[0]; std::string select_query {}; string_format(t_select_query, select_query, id);