This commit is contained in:
parent
753da21322
commit
3f7cd2c571
@ -58,7 +58,7 @@ def find_target
|
||||
sc.execute(binds, klass, conn) do |record|
|
||||
set_inverse_instance record
|
||||
end.first
|
||||
rescue RangeError
|
||||
rescue ::RangeError
|
||||
nil
|
||||
end
|
||||
|
||||
|
@ -1079,7 +1079,7 @@ def self.name; "Temp"; end
|
||||
end
|
||||
|
||||
comment = model.new
|
||||
comment.post_id = 10_000_000_000
|
||||
comment.post_id = 9223372036854775808 # out of range in the bigint
|
||||
|
||||
assert_nil comment.post
|
||||
assert_not comment.valid?
|
||||
|
Loading…
Reference in New Issue
Block a user