aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/type/big_integer.rb
Commit message (Collapse)AuthorAgeFilesLines
* Treat strings greater than int max value as out of rangeSean Griffin2014-10-311-0/+13
Sufficiently large integers cause `find` and `find_by` to raise `StatementInvalid` instead of `RecordNotFound` or just returning `nil`. Given that we can't cast to `nil` for `Integer` like we would with junk data for other types, we raise a `RangeError` instead, and rescue in places where it would be highly unexpected to get an exception from casting. Fixes #17380