mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
OID
type should accept a value range of unsigned integers
Related #38425.
This commit is contained in:
parent
8d57cb39a8
commit
a8398e0e5b
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ module ActiveRecord
|
|||
module ConnectionAdapters
|
||||
module PostgreSQL
|
||||
module OID # :nodoc:
|
||||
class Oid < Type::Integer # :nodoc:
|
||||
class Oid < Type::UnsignedInteger # :nodoc:
|
||||
def type
|
||||
:oid
|
||||
end
|
||||
|
|
|
@ -55,7 +55,7 @@ class PostgresqlDataTypeTest < ActiveRecord::PostgreSQLTestCase
|
|||
end
|
||||
|
||||
def test_update_oid
|
||||
new_value = 567890
|
||||
new_value = 2147483648
|
||||
@first_oid.obj_id = new_value
|
||||
assert @first_oid.save
|
||||
assert @first_oid.reload
|
||||
|
|
Loading…
Reference in a new issue