diff options
author | Pat Allan <pat@freelancing-gods.com> | 2017-06-20 19:43:21 +1000 |
---|---|---|
committer | Pat Allan <pat@freelancing-gods.com> | 2017-06-20 19:43:21 +1000 |
commit | b86e313df53ada181850a057e254052f38014738 (patch) | |
tree | 41531a72563ec51568ca703aa0284acb689a75e0 /activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb | |
parent | 4ff30d9bb6d5d591fbb3952112d721c995059302 (diff) | |
download | rails-b86e313df53ada181850a057e254052f38014738.tar.gz rails-b86e313df53ada181850a057e254052f38014738.tar.bz2 rails-b86e313df53ada181850a057e254052f38014738.zip |
Make ActiveRecord frozen string literal friendly.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb index fc57e41fc9..a01fbba201 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql/schema_statements.rb @@ -102,7 +102,7 @@ module ActiveRecord def data_source_sql(name = nil, type: nil) scope = quoted_scope(name, type: type) - sql = "SELECT table_name FROM information_schema.tables" + sql = "SELECT table_name FROM information_schema.tables".dup sql << " WHERE table_schema = #{scope[:schema]}" sql << " AND table_name = #{scope[:name]}" if scope[:name] sql << " AND table_type = #{scope[:type]}" if scope[:type] |