Skip to content

Improve database naming in ext/pdo_pgsql for better para-tests #11872

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

alexandre-daubois
Copy link
Contributor

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