1
0
Fork 0
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:
Ryuta Kamizono 2020-02-12 16:42:33 +09:00
parent 8d57cb39a8
commit a8398e0e5b
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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