mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix test failure on PG caused by 7c6f3938de
This commit is contained in:
parent
8c83bd0732
commit
7a69e27cde
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ class PostgresqlTypeLookupTest < ActiveRecord::TestCase
|
|||
bigint_array = @connection.type_map.lookup(1016, -1, "bigint[]")
|
||||
big_array = [123456789123456789]
|
||||
|
||||
assert_raises(RangeError) { int_array.type_cast_from_user(big_array) }
|
||||
assert_equal big_array, bigint_array.type_cast_from_user(big_array)
|
||||
assert_raises(RangeError) { int_array.type_cast_for_database(big_array) }
|
||||
assert_equal "{123456789123456789}", bigint_array.type_cast_for_database(big_array)
|
||||
end
|
||||
|
||||
test "range types correctly respect registration of subtypes" do
|
||||
|
|
Loading…
Reference in a new issue