提交 398b4de0 编写于 作者: V Vipul A M

Fix warnings due to:

- unused variable in PG Adapter.
- Ambiguous argument warning from range_test for use - to + Infinity range without brackets.
上级 f60b5249
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册