-
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 handling of defaultSchemaName on Postgresql #2812
Conversation
…igured defaults after a rollback
Notes and test results: Things to be aware of
Things to worry about
|
To test this I used the following changelog file: dbchangelog.zip which also includes this SQL file: sqlStatements.zip across the different databases that were tested. In the changelog file there's a table creation using the tag. Meanwhile in the included SQL script there's a table creation, column creation, constraint creation and an information insert. The results after running an update with this changelog for each database and using a
Also, to ensure that the PR #1864 fix was still working propertly, I also executed the test cases that were used to test those changes: Verify successful update for tables, indexes and inert statements with spatial types and spatial methods:
Verify a successful update for a procedure with spatial parameters (BOX2D, BOX3D, GEOMETRY and GEOMETRY_DUMP). PASS Verify a successful rollback of a procedure with spatial parameters (BOX2D, BOX3D, GEOMETRY and GEOMETRY_DUMP). PASS Verify a successful generate-changelog for tables, indexes and insert statements with spatial types and spatial methods. PASS In the following file there's changelog directory with the generated updatesql and snapshot of the database after running the update command for each database (Postgres, Postgis, EDB and CockroachDB). Environment information |
did this change da won dun break me version 4.11 ?
|
@tooptoop4 Would you mind opening a new issue reporting the details of your error so we can better track it and help resolve? Since this PR is already merged and released I don't want your issue to get lost. Thanks! |
Description
When we first connect to postgresql, we call
SET SEARCH_PATH=...
to ensure the defaultSchemaName is first in the list.However, when we roll back the connection (which we do throughout a liquibase run to ensure we have a clean connection) the search path on the connection gets rolled back to the initial value.
This PR restores the the reset of SEARCH_PATH in the rollback operation for postgreql