diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-01-21 13:25:45 -0700 |
---|---|---|
committer | Sean Griffin <sean@seantheprogrammer.com> | 2016-01-21 13:27:40 -0700 |
commit | 6efb39456a8ee3569f3787cc2f26c041365a0e27 (patch) | |
tree | 64baefcb441405b19148974d78ec4bc3739dee8a /activesupport/test/ordered_options_test.rb | |
parent | 71d6826d2989ae0cf1d44f10ea73d4f9dd5f7cc6 (diff) | |
download | rails-6efb39456a8ee3569f3787cc2f26c041365a0e27.tar.gz rails-6efb39456a8ee3569f3787cc2f26c041365a0e27.tar.bz2 rails-6efb39456a8ee3569f3787cc2f26c041365a0e27.zip |
Use bind parameters for ranges in where clauses
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
Diffstat (limited to 'activesupport/test/ordered_options_test.rb')
0 files changed, 0 insertions, 0 deletions