Skip to content
  • Sean Griffin's avatar
    c99bea1d
    Use bind params for values other than strings and ints · c99bea1d
    Sean Griffin authored
    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.
    c99bea1d
    Use bind params for values other than strings and ints
    Sean Griffin authored
    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.
Loading