]> granicus.if.org Git - php/commit
Avoid spurious failures of MySQL INSERT packet overflow test
authorAlex Dowad <alexinbeijing@gmail.com>
Wed, 22 Apr 2020 18:52:16 +0000 (20:52 +0200)
committerMáté Kocsis <kocsismate@woohoolabs.com>
Fri, 1 May 2020 10:25:42 +0000 (12:25 +0200)
commit7b32d176d2ef6f144083f1df15f5b15500f40447
tree4deea723d7a7b19c6e984b0894b2644adf7ab1c5
parent86ed93c23085f7c2f189d7bbc78efe8f76981e8e
Avoid spurious failures of MySQL INSERT packet overflow test

This test creates a MySQL table called 'test'. In several cases, I have seen a spurious
test failure (in CI) with an error message saying: "table 'test' already exists".

It may be that another test had used a table with the same name and not cleaned it out
correctly. Or maybe we have multiple tests running in parallel in some CI environments,
or the same test DB being used for multiple runs of the test suite.

In any case, change the table name so it is exclusive to this test case only. Also, if
the test table exists at the beginning of the test, drop it.

Closes GH-5479
ext/mysqli/tests/mysqli_insert_packet_overflow.phpt