Use bind params for values other than strings and ints
Booleans, for example, are a perfectly valid value to use for bind params. Required to allow #19874 to be fixed. There is an unrelated looking change in `through_association` also required for this fix. We have a polymorphic association in our tests that is unscoping a boolean query parameter. Mutating the association as we were doing previously causes too many bind params to be on the final query.
Showing
想要评论请 注册 或 登录