Skip to content
  • Sean Griffin's avatar
    6efb3945
    Use bind parameters for ranges in where clauses · 6efb3945
    Sean Griffin authored
    This is a similar case to wanting ot use bind params for limit and
    offset. Right now passing a range grows the amount of prepared
    statements in an unbounded fashion. We could avoid using prepared
    statements in that case, similar to what we do with arrays, but there's
    a known number of variants for ranges.
    
    This ends up duplicating some of the logic from Arel for how to handle
    potentially infinite ranges, and that behavior may be removed from Arel
    in the future.
    
    Fixes #23074
    6efb3945
    Use bind parameters for ranges in where clauses
    Sean Griffin authored
    This is a similar case to wanting ot use bind params for limit and
    offset. Right now passing a range grows the amount of prepared
    statements in an unbounded fashion. We could avoid using prepared
    statements in that case, similar to what we do with arrays, but there's
    a known number of variants for ranges.
    
    This ends up duplicating some of the logic from Arel for how to handle
    potentially infinite ranges, and that behavior may be removed from Arel
    in the future.
    
    Fixes #23074
Loading