From 69cf5576f36de05e2498abd34b2ffa33d4e83ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 5 Nov 2025 17:51:34 +0100 Subject: [PATCH] Fix conn selection for 'reg_test_stmt_inv_param_offset-t' Since the test requires to modify 'max_allowed_packet' to work, it cannot reuse previous connections from the conn_pool. New connections must be created, to ensure that the new defaults are used. --- test/tap/tests/reg_test_stmt_inv_param_offset-t.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/tap/tests/reg_test_stmt_inv_param_offset-t.cpp b/test/tap/tests/reg_test_stmt_inv_param_offset-t.cpp index 069cb8ce9..963bb68dc 100644 --- a/test/tap/tests/reg_test_stmt_inv_param_offset-t.cpp +++ b/test/tap/tests/reg_test_stmt_inv_param_offset-t.cpp @@ -275,7 +275,13 @@ int main(int argc, char** argv) { } MYSQL_QUERY(proxy_1, "CREATE DATABASE IF NOT EXISTS test"); + + diag("Starting trx in new connection; required for 'max_allowed_packet' conn=%p", proxy_1); + MYSQL_QUERY(proxy_1, "/* create_new_connection=1 */ BEGIN"); + MYSQL_QUERY(proxy_2, "USE test"); + diag("Starting trx in new connection; required for 'max_allowed_packet' conn=%p", proxy_2); + MYSQL_QUERY(proxy_2, "/* create_new_connection=1 */ BEGIN"); MYSQL_QUERY(proxy_1, "CREATE TABLE IF NOT EXISTS test.test_stmt_inv__large_col_1 (" @@ -399,6 +405,9 @@ int main(int argc, char** argv) { } cleanup: + MYSQL_QUERY(proxy_1, "ROLLBACK"); + MYSQL_QUERY(proxy_2, "ROLLBACK"); + MYSQL_QUERY(proxy_1, "DELETE FROM test.test_stmt_inv__large_col_1"); MYSQL_QUERY(proxy_1, "DELETE FROM test.test_stmt_inv__large_col_2");