aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2014-03-03 02:35:42 +0530
committerVipul A M <vipulnsward@gmail.com>2014-03-03 02:35:42 +0530
commit398b4de011e5bbfd10408ed591e92f192cb37327 (patch)
tree09faf450c7b06c1b7e99d7edbe8cff2e7839560e /activerecord/lib
parentf60b5249194d71a5a7ad152332400af39543628f (diff)
downloadrails-398b4de011e5bbfd10408ed591e92f192cb37327.tar.gz
rails-398b4de011e5bbfd10408ed591e92f192cb37327.tar.bz2
rails-398b4de011e5bbfd10408ed591e92f192cb37327.zip
Fix warnings due to:
- unused variable in PG Adapter. - Ambiguous argument warning from range_test for use - to + Infinity range without brackets.
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index d1fb132b60..9f18fdd3e5 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -822,7 +822,7 @@ module ActiveRecord
# 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