Permalink
Browse files

Merge pull request #14248 from vipulnsward/fix-pg-ar-warnings

Fix PG warnings.
  • Loading branch information...
2 parents f60b524 + 398b4de commit 9291d5a067b3c3ea314dcf49fb45f6171f653b43 @senny senny committed Mar 2, 2014
@@ -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

0 comments on commit 9291d5a

Please sign in to comment.