aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/test_case.rb
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2015-12-14 08:18:05 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2015-12-15 10:15:24 +0100
commite12c2a6d11a9ebc28b85f34230b11fb654503726 (patch)
treee7a792b82df69d11e41b7c7db46c21edcfc68c8e /activerecord/test/cases/test_case.rb
parent0aae9c25ab4d8d0a45e4353da4544b606b7b6584 (diff)
downloadrails-e12c2a6d11a9ebc28b85f34230b11fb654503726.tar.gz
rails-e12c2a6d11a9ebc28b85f34230b11fb654503726.tar.bz2
rails-e12c2a6d11a9ebc28b85f34230b11fb654503726.zip
Deprecate limit strings with commas
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.
Diffstat (limited to 'activerecord/test/cases/test_case.rb')
0 files changed, 0 insertions, 0 deletions