Skip to content

Commit 8b4da54

Browse files
committed
ext/mysqli: Drop table at beginning for mysqli_fetch_all_data_types_variation.phpt
If the table exists already (i.e. cleanup fails to run on a persistent database instance), then the test will fail to run. Currently being seen on ppc64 CI: https://github.com/php/php-src/actions/runs/14721423150/job/41315888822
1 parent 2fea4ef commit 8b4da54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ext/mysqli/tests/fetch/mysqli_fetch_all_data_types_variation.phpt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
1313

1414
$link = default_mysqli_connect();
1515

16+
try {
17+
mysqli_query($link, "DROP TABLE test_mysqli_fetch_all_data_types_variation");
18+
} catch (mysqli_sql_exception $e) {
19+
// harmless, to avoid table already existing if the test gets wedged and then done again with persistent DB instance
20+
}
21+
1622
function func_mysqli_fetch_all(
1723
mysqli $link,
1824
string $engine,

0 commit comments

Comments
 (0)