diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2017-01-31 11:53:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-31 11:53:17 -0500 |
commit | 1e1866948e6d15c84f4fc5912eb326607b82a3fb (patch) | |
tree | 6dbfc9ba8815abc7402b9118fbdf00caff498990 | |
parent | 898d8787198f08b6ea02dc836a8cd90399e01985 (diff) | |
parent | 637c0455af2f3d3021b5c28a365250ac125b5ae2 (diff) | |
download | rails-1e1866948e6d15c84f4fc5912eb326607b82a3fb.tar.gz rails-1e1866948e6d15c84f4fc5912eb326607b82a3fb.tar.bz2 rails-1e1866948e6d15c84f4fc5912eb326607b82a3fb.zip |
Merge pull request #27767 from benoittgt/freeze_sql_type_with_get_oid_type
Freeze default empty string for sql_type in get_oid_type
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 2 |
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 315d70c33f..a2c5ef6817 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -438,7 +438,7 @@ module ActiveRecord end end - def get_oid_type(oid, fmod, column_name, sql_type = "") + def get_oid_type(oid, fmod, column_name, sql_type = "".freeze) if !type_map.key?(oid) load_additional_types(type_map, [oid]) end |