Skip to content

Commit d1c227a

Browse files
committed
remove useless exception
1 parent 8b4da54 commit d1c227a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

ext/mysqli/tests/fetch/mysqli_fetch_all_data_types_variation.phpt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ 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-
}
16+
mysqli_query($link, "DROP TABLE IF EXISTS test_mysqli_fetch_all_data_types_variation");
2117

2218
function func_mysqli_fetch_all(
2319
mysqli $link,

0 commit comments

Comments
 (0)