-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 dependency query for PostgreSQL 15 #3456
Conversation
Pre-Review Notes Change makes sense, improves the postgresql query to handle the datatype in an internal query better Questions I have:
Potential risks:
What could make the full review difficult:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests passed. Besides that I ran the changed SQL on Postgresql 9.6 and 12 and it worked fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR fixes a datatype mismatch between text
and char
when querying pg_constraint.contype
, which returns a char
. Liquibase was inconsitently casting pg_constraint.contype
to text
, resulting in the error. This is fixed.
- Fix is specific to Postgres.
- Automated functional and test harness executions passing.
- No additional testing required.
APPROVED
Impact
Description
Invalid datytype caused sql error and then 0 changes detected.
Hoewer command return success code.
Additional Context
Error in console with --log-level=DEBUG
Unchanged sql runned directly on database:
Changed sql runned directly on database:
Thanks.