Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type cast extra select for eager loading
It is not a big issue for common types, since type casting in master branch is much improved, but strictly speaking eager loading should respect column types from database like as `find_by_sql` also does. https://github.com/rails/rails/blob/97c34a55fa0f4e8d51504bd137f6e82155336d9a/activerecord/lib/active_record/querying.rb#L46-L52 Fixes #39605.
- Loading branch information
Showing
3 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters