Skip to content
  • Ryuta Kamizono's avatar
    0e765539
    Maintain extra joins for string or complex arel conditions · 0e765539
    Ryuta Kamizono authored
    49bcb008 has changed to maintain extra joins only if other table's
    condition is found (e.g. `other_table[:id].eq(table[:foreign_id])`).
    
    It means that cannot maintain extra joins for complex conditions
    (especially "(... OR ...)"), so it has caused a regression #37167.
    
    This changes to maintain extra joins for complex conditions too like as
    before.
    
    Fixes #37167.
    0e765539
    Maintain extra joins for string or complex arel conditions
    Ryuta Kamizono authored
    49bcb008 has changed to maintain extra joins only if other table's
    condition is found (e.g. `other_table[:id].eq(table[:foreign_id])`).
    
    It means that cannot maintain extra joins for complex conditions
    (especially "(... OR ...)"), so it has caused a regression #37167.
    
    This changes to maintain extra joins for complex conditions too like as
    before.
    
    Fixes #37167.
Loading