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

Add test and fix for issue 299 #334

Merged
merged 3 commits into from
Aug 23, 2022
Merged

Add test and fix for issue 299 #334

merged 3 commits into from
Aug 23, 2022

Conversation

belevy
Copy link
Collaborator

@belevy belevy commented Aug 23, 2022

@parsonsmatt This should fix #299 by aggressively re-aliasing. Previously, if an already aliased value was discovered it would not be realiased. This caused an issue where an alias from a lower level could be mixed with an alias from a higher level. This only showed up as an issue when using set operations due to its "smarts" that try to avoid using more Idents than absolutely necessary.

I guess this is a minor version bump?

I would like your eyes on this before I merge.

@belevy belevy self-assigned this Aug 23, 2022
Copy link
Collaborator

@parsonsmatt parsonsmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thank you 🎉

@parsonsmatt
Copy link
Collaborator

As for version - there shouldn't be any changes to the behavior of the library, up to alpha equivalence on SQL queries. And it's a bug fix, not a new feature. I'd probably do a patch release.

@belevy belevy merged commit 88856e7 into master Aug 23, 2022
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.

Ambiguous column reference when using union result in subquery/CTE with persistent-postgresql
2 participants