Skip to content

Conversation

@alexandre-daubois
Copy link
Member

Following @Girgias' comment (#11855 (comment)), I propose this PR to improve tests under ext/pdo_pgsql by renaming tables. Each table takes the test name, making them unique which is better to run tests in parallel.

If this gets merged, I'll try to have a look at other drivers! 🙂

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea, but dropping the table should be done in a --CLEAN-- section

$db->exec('CREATE TABLE test (foo varchar(5) NOT NULL, bar bool NOT NULL)');
$db->exec("INSERT INTO test VALUES('false','f')");
$db->exec("INSERT INTO test VALUES('true', 't')");
$db->query('DROP TABLE IF EXISTS b33876 CASCADE');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those DROP TABLES should be in a CLEAN section

@Girgias
Copy link
Member

Girgias commented Aug 4, 2023

Ah wait, this is in tandem with the other PR.

@Girgias Girgias merged commit e5b2590 into php:master Aug 4, 2023
jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants