diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-10-24 12:53:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 12:53:37 -0400 |
commit | d3e646595fb33fce131750fb558b72560afdeb3f (patch) | |
tree | b6f28545d3783b8a12b906261d9470965aba45c0 /activerecord/test/cases/bind_parameter_test.rb | |
parent | eba2ba8d3aacba1e91b521754f988345c1d780c5 (diff) | |
parent | ce40073c9c321575e6b4f46dd5ac9b796a2637be (diff) | |
download | rails-d3e646595fb33fce131750fb558b72560afdeb3f.tar.gz rails-d3e646595fb33fce131750fb558b72560afdeb3f.tar.bz2 rails-d3e646595fb33fce131750fb558b72560afdeb3f.zip |
Merge pull request #34303 from kamipo/lazy_checking_boundable
Lazy checking whether or not values in IN clause are boundable
Diffstat (limited to 'activerecord/test/cases/bind_parameter_test.rb')
-rw-r--r-- | activerecord/test/cases/bind_parameter_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/bind_parameter_test.rb b/activerecord/test/cases/bind_parameter_test.rb index 9c1f7aaef2..fddc2781b8 100644 --- a/activerecord/test/cases/bind_parameter_test.rb +++ b/activerecord/test/cases/bind_parameter_test.rb @@ -36,7 +36,7 @@ if ActiveRecord::Base.connection.prepared_statements def test_too_many_binds bind_params_length = @connection.send(:bind_params_length) - topics = Topic.where(id: (1 .. bind_params_length + 1).to_a) + topics = Topic.where(id: (1 .. bind_params_length).to_a << 2**63) assert_equal Topic.count, topics.count end |