Skip to content
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

Fix #2868 on 2.5: support PostgreSQL 10 when looking up sequence metadata #3587

Closed

Conversation

werrolf
Copy link

@werrolf werrolf commented Jun 4, 2019

Q A
Type bug
BC Break no
Fixed issues #2868 fix for 2.5 branch (PHP5.x)

Summary

This change fixes #2868 specifically for the legacy 2.5 branch.

An extra path is added for sequence metada access changes introduced in PostgreSQL 10. Previous logic is retained for PostgreSQL <= 9. Non-default ("public") schema names are supported.

Modern versions of doctrine/dbal already work fine with PSQL 10 (see #2893) but require PHP >=7.1. Having this support also on the 2.5 line would allow deploying doctrine/dbal alongside PostgreSQL 10 and PHP5.x.

The change has been field-verified against a Symfony project on a PSQL 10 database, albeit on PHP 7.2. The typical errors in doctrine:schema:update (SQLSTATE[42703]: Undefined column: 7 ERROR: column "min_value" does not exist) have gone away with this change.

PostgreSQL 9 has not been re-verified. No unit test has been bundled.

@werrolf werrolf changed the title Fix #2868 support PostgreSQL 10 when looking up sequence metadata Fix #2868 on 2.5: support PostgreSQL 10 when looking up sequence metadata Jun 4, 2019
@SenseException
Copy link
Member

Thank you for your PR, but DBAL 2.5 isn't maintained anymore.

@morozov morozov closed this Jun 4, 2019
@morozov morozov self-assigned this Jun 4, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants