• S
    Deprecate limit strings with commas · 4358b0d1
    Sean Griffin 提交于
    Some backends allow `LIMIT 1,2` as a shorthand for `LIMIT 1 OFFSET 2`.
    Supporting this in Active Record massively complicates using bind
    parameters for limit and offset, and it's trivially easy to build an
    invalid SQL query by also calling `offset` on the same `Relation`.
    
    This is a niche syntax that is only supported by a few adapters, and can
    be trivially worked around by calling offset explicitly.
    4358b0d1
query_methods.rb 39.0 KB