aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2017-01-31 11:53:17 -0500
committerGitHub <noreply@github.com>2017-01-31 11:53:17 -0500
commit1e1866948e6d15c84f4fc5912eb326607b82a3fb (patch)
tree6dbfc9ba8815abc7402b9118fbdf00caff498990 /activerecord
parent898d8787198f08b6ea02dc836a8cd90399e01985 (diff)
parent637c0455af2f3d3021b5c28a365250ac125b5ae2 (diff)
downloadrails-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
Diffstat (limited to 'activerecord')
-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 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