aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/unsafe_raw_sql_test.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-04-05 06:09:44 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-04-05 06:40:53 +0900
commit8f05035b7e595e2086759ee10ec9df9431e5e351 (patch)
tree02b91b4c73aec9e20e1325c5e54667729485cbe1 /activerecord/test/cases/unsafe_raw_sql_test.rb
parent50fba828d533ff75671ca8b83337dd99aa613ff7 (diff)
downloadrails-8f05035b7e595e2086759ee10ec9df9431e5e351.tar.gz
rails-8f05035b7e595e2086759ee10ec9df9431e5e351.tar.bz2
rails-8f05035b7e595e2086759ee10ec9df9431e5e351.zip
Stash `left_joins` into `joins` to deduplicate redundant LEFT JOIN
Originally the `JoinDependency` has the deduplication for eager loading (LEFT JOIN). This re-uses that deduplication for `left_joins`. And also, This makes left join order into part of joins, i.e.: Before: ``` association joins -> stash joins (eager loading, etc) -> string joins -> left joins ``` After: ``` association joins -> stash joins (eager loading, left joins, etc) -> string joins ``` Now string joins are able to refer left joins. Fixes #34325. Fixes #34332. Fixes #34536.
Diffstat (limited to 'activerecord/test/cases/unsafe_raw_sql_test.rb')
0 files changed, 0 insertions, 0 deletions