aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-03-02 22:50:26 +0100
committerYves Senn <yves.senn@gmail.com>2014-03-02 22:50:26 +0100
commit9291d5a067b3c3ea314dcf49fb45f6171f653b43 (patch)
tree09faf450c7b06c1b7e99d7edbe8cff2e7839560e /activerecord/lib/active_record
parentf60b5249194d71a5a7ad152332400af39543628f (diff)
parent398b4de011e5bbfd10408ed591e92f192cb37327 (diff)
downloadrails-9291d5a067b3c3ea314dcf49fb45f6171f653b43.tar.gz
rails-9291d5a067b3c3ea314dcf49fb45f6171f653b43.tar.bz2
rails-9291d5a067b3c3ea314dcf49fb45f6171f653b43.zip
Merge pull request #14248 from vipulnsward/fix-pg-ar-warnings
Fix PG warnings.
Diffstat (limited to 'activerecord/lib/active_record')
-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