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

cmd/atlas/internal/migratelint: make linting inspection context-aware #3201

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

a8m
Copy link
Member

@a8m a8m commented Oct 26, 2024

If the connection is scoped to a specific schema, we should use InspectSchema to get the inspected realm. That is because PostgreSQL unsets the search_path when inspecting the entire realm, causing us to lose the schema context and get qualified composite types on inspection.

Fixed #3200

If the connection is scoped to a specific schema, we should use InspectSchema to
get the inspected realm. That is because PostgreSQL unsets the search_path when
inspecting the entire realm, causing us to lose the schema context and get qualified
composite types on inspection.

Fixed #3200
@a8m a8m requested review from rotemtam, giautm and a team October 26, 2024 07:59
@a8m a8m merged commit f490381 into master Oct 26, 2024
23 checks passed
@a8m a8m deleted the lintinspect branch October 26, 2024 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create function - the planned state does not match the desired state after applying
2 participants