• R
    Fix merging left_joins to maintain its own `join_type` context · 20ede2e2
    Ryuta Kamizono 提交于
    This fixes a regression for #35864.
    
    Usually, stashed joins (mainly eager loading) are performed as LEFT
    JOINs.
    But the case of merging joins/left_joins of different class, that
    (stashed) joins are performed as the same `join_type` as the parent
    context for now.
    Since #35864, both (joins/left_joins) stashed joins might be contained
    in `joins_values`, so each stashed joins should maintain its own
    `join_type` context.
    
    Fixes #36103.
    20ede2e2
finder_methods.rb 19.1 KB