• R
    Don't allow `where` with non numeric string matches to 0 values · 357cd23d
    Ryuta Kamizono 提交于
    This is a follow-up of #35310.
    
    Currently `Topic.find_by(id: "not-a-number")` matches to a `id = 0`
    record. That is considered as silently leaking information.
    
    If non numeric string is given to find by an integer column, it should
    not be matched to any record.
    
    Related #12793.
    357cd23d
where_test.rb 11.5 KB