Fix warnings due to:
- unused variable in PG Adapter. - Ambiguous argument warning from range_test for use - to + Infinity range without brackets.
This commit is contained in:
parent
f60b524919
commit
398b4de011
@ -822,7 +822,7 @@ def initialize_type_map(type_map)
|
||||
# populate range types
|
||||
ranges.find_all { |row| type_map.key? row['rngsubtype'].to_i }.each do |row|
|
||||
subtype = type_map[row['rngsubtype'].to_i]
|
||||
range = OID::Range.new type_map[row['rngsubtype'].to_i]
|
||||
range = OID::Range.new subtype
|
||||
type_map[row['oid'].to_i] = range
|
||||
end
|
||||
end
|
||||
|
@ -156,7 +156,7 @@ def test_custom_range_values
|
||||
assert_equal 0.5..0.7, @first_range.float_range
|
||||
assert_equal 0.5...0.7, @second_range.float_range
|
||||
assert_equal 0.5...Float::INFINITY, @third_range.float_range
|
||||
assert_equal -Float::INFINITY...Float::INFINITY, @fourth_range.float_range
|
||||
assert_equal (-Float::INFINITY...Float::INFINITY), @fourth_range.float_range
|
||||
assert_nil @empty_range.float_range
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user