aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-04-10 20:39:21 +0200
committerYves Senn <yves.senn@gmail.com>2014-04-11 11:07:38 +0200
commit9f62344d9552f0a58e4aa43ca6f1a7fec273a04e (patch)
treeac02482ca57cffa96327a2231cbddf303069ceca /activerecord/lib
parent0c9bbc632642895676684ed7e2978ab69b04de80 (diff)
downloadrails-9f62344d9552f0a58e4aa43ca6f1a7fec273a04e.tar.gz
rails-9f62344d9552f0a58e4aa43ca6f1a7fec273a04e.tar.bz2
rails-9f62344d9552f0a58e4aa43ca6f1a7fec273a04e.zip
PostgreSQL, warn once per connection per missing OID. Closes #14275.
[Yves Senn & Matthew Draper]
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
index 207e1c4fed..0485093123 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -565,8 +565,8 @@ module ActiveRecord
end
type_map.fetch(oid, fmod) {
- warn "unknown OID #{oid}: failed to recognize type of #{column_name}"
- OID::Identity.new
+ warn "unknown OID #{oid}: failed to recognize type of '#{column_name}'. It will be treated as String."
+ type_map[oid] = OID::Identity.new
}
end