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: handle overlapping property / database names in querybuilder #7042

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

imnotjames
Copy link
Contributor

@imnotjames imnotjames commented Nov 9, 2020

Description of change

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes #7030

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change (N/A)
  • The new commits follow conventions explained in CONTRIBUTING.md

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes typeorm#7030
@ddehghan
Copy link

ddehghan commented Nov 9, 2020

Yeah. this fixed my issue.

@pleerock pleerock merged commit b518fa1 into typeorm:master Nov 10, 2020
edcolvin pushed a commit to edcolvin/typeorm that referenced this pull request Nov 12, 2020
…peorm#7042)

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes typeorm#7030
nebkat pushed a commit to nebkat/typeorm that referenced this pull request Jan 9, 2021
…peorm#7042)

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes typeorm#7030
nebkat pushed a commit to nebkat/typeorm that referenced this pull request Jan 9, 2021
…peorm#7042)

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes typeorm#7030
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
…peorm#7042)

we should always prioritize replacement of any property path first,
then property names, then database names, then relation values
whenever there's ambiguous values

fixes typeorm#7030
@imnotjames imnotjames deleted the fix/7030/ambigious-column-names branch June 21, 2021 00:11
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.

Column name aliasing broke in v 0.2.29
3 participants