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

Issue 580 select ambiguous column name using the wheels alias #1253

Merged
merged 4 commits into from
Oct 18, 2023

Conversation

zainforbjs
Copy link
Contributor

Added a new aliasedProperyList node in the classData which will have the specific columns prepended with the model name so that we can get the column in the select clause if include table is specified.
This is then compared with select argument's values and returns the correct column of the table.

A test case is also added which is copied from @chapmandu issue 580's description. Tested it as well and it is successful.

Added a new aliasedProperyList node in the classData which will have the specific columns prepended with the model name so that we can get the column in the select clause if include table is specified.
Changed condition to include all columns in the list as suggested by @chapmandu
@bpamiri
Copy link
Collaborator

bpamiri commented Oct 17, 2023

@zainforbjs can you resolve the merge conflicts on this PR so it can be merged.

@zainforbjs
Copy link
Contributor Author

@bpamiri I have resolved the conflicts. Please try to merge now.

Due to the changes done in this branch, the other test cases need to be altered a little. Fixed that.
@zainforbjs
Copy link
Contributor Author

@bpamiri The PR is ready to merge, all tests have been passed.

@bpamiri bpamiri merged commit 10a575d into cfwheels:develop Oct 18, 2023
20 checks passed
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.

Select ambiguous column name using the wheels alias
2 participants