diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-12-04 16:48:37 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-12-04 16:48:54 -0800 |
commit | c9223dc366f17b61d0cffeff14a7e670ece9d0d4 (patch) | |
tree | 20a717e1d84644968a46a9c5f806d3c1cb660a99 /activerecord/lib/active_record/connection_adapters/postgresql | |
parent | d1cec0841db059e2daece4486fc30c8a14d23993 (diff) | |
download | rails-c9223dc366f17b61d0cffeff14a7e670ece9d0d4.tar.gz rails-c9223dc366f17b61d0cffeff14a7e670ece9d0d4.tar.bz2 rails-c9223dc366f17b61d0cffeff14a7e670ece9d0d4.zip |
make the type_map per connection. fixes #13182
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb index 5dc70a5ad1..571257f6dd 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb @@ -172,7 +172,7 @@ module ActiveRecord def columns(table_name) # Limit, precision, and scale are all handled by the superclass. column_definitions(table_name).map do |column_name, type, default, notnull, oid, fmod| - oid = OID::TYPE_MAP.fetch(oid.to_i, fmod.to_i) { + oid = type_map.fetch(oid.to_i, fmod.to_i) { OID::Identity.new } PostgreSQLColumn.new(column_name, default, oid, type, notnull == 'f') |