blob: 93a7dafebd6d17a8d8f18cdfd3da09defb6efcf2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
require "cases/helper"
require "models/topic"
module ActiveRecord
module ConnectionAdapters
class SQLite3Adapter
class BindParameterTest < ActiveRecord::SQLite3TestCase
def test_too_many_binds
topics = Topic.where(id: (1..999).to_a << 2**63)
assert_equal Topic.count, topics.count
topics = Topic.where.not(id: (1..999).to_a << 2**63)
assert_equal 0, topics.count
end
end
end
end
end
|