diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2015-12-14 08:18:05 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2015-12-15 10:15:24 +0100 |
commit | e12c2a6d11a9ebc28b85f34230b11fb654503726 (patch) | |
tree | e7a792b82df69d11e41b7c7db46c21edcfc68c8e /actioncable/test | |
parent | 0aae9c25ab4d8d0a45e4353da4544b606b7b6584 (diff) | |
download | rails-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 'actioncable/test')
0 files changed, 0 insertions, 0 deletions