From 4bd15497b5ae031a0aaa54e0b3aaac3a1339f4f2 Mon Sep 17 00:00:00 2001 From: Eliot Lear Date: Wed, 29 Apr 2020 15:54:14 +0200 Subject: [PATCH] Fix #79539 CI fails on mysqli_insert_packet_overflow.phpt based on what mysqli tests are run, because the test db sometimes lingers. This fix drops the table if it exists, as most tests do. --- ext/mysqli/tests/mysqli_insert_packet_overflow.phpt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt b/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt index fc6b6a3ad7c89..82e1df4b0b802 100644 --- a/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt +++ b/ext/mysqli/tests/mysqli_insert_packet_overflow.phpt @@ -71,6 +71,9 @@ memory_limit=256M printf("[011] Failed to change max_allowed_packet"); } + if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) + printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); + if (!mysqli_query($link, "CREATE TABLE test(col_blob LONGBLOB) ENGINE=" . $engine)) printf("[012] [%d] %s\n", mysqli_errno($link), mysqli_error($link));