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

Maintain eager loading joining order as before #37235

Merged
merged 1 commit into from Sep 18, 2019

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Sep 18, 2019

If a relation has eager_load and string joins only, string joins will be
regarded as leading joins unlike before, due to #36805.

To maintain that joining order as before, check eager loading join
first before string joins.

Fixes #37133.

If a relation has eager_load and string joins only, string joins will be
regarded as leading joins unlike before, due to rails#36805.

To maintain that joining order as before, check eager loading join
first before string joins.

Fixes rails#37133.
@kamipo kamipo merged commit 9a7f15c into rails:master Sep 18, 2019
@kamipo kamipo deleted the fix_eager_load branch September 18, 2019 09:30
kamipo added a commit that referenced this pull request Sep 20, 2019
Maintain eager loading joining order as before
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rails 6.0 switches order of joined queries when combining includes and joins (causing errors)
1 participant