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 issue 1884 - Ambiguous column reference error in SET clause #1885

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zainab-Saad
Copy link
Contributor

The error occured due to SET transform not checking if the target entry for the RHS item is already present in the query target list and added the item to tl which resulted in variable name conflict.

Instead transformed the item and added to tl only if target entry for the var name could not be found

Added regression tests

The error occured due to SET transform not checking if the target entry
for the RHS item is already present in the query target list and added
the item to tl which resulted in variable name conflict.

Instead transformed the item and added to tl only if target entry for the
var name could not be found

Added regression tests
@github-actions github-actions bot added master override-stale To keep issues/PRs untouched from stale action labels May 17, 2024
{
query->hasAggs = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this intentionally removed?

}

if (!query->hasAggs && nodeTag(target_item->expr) == T_Aggref)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
master override-stale To keep issues/PRs untouched from stale action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants