diff options
author | Matthew Draper <matthew@trebex.net> | 2017-06-01 15:50:52 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 15:50:52 +0930 |
commit | d83558249c69577c3145c1db64870de98411a612 (patch) | |
tree | ceb062081e7bf5f9ebe5e59ee6ca8dea2841c7df | |
parent | 908b136cf27aeb38b06dc98e7d2215d852ffc962 (diff) | |
parent | 3c3ff9c76a2ddef5bf52c25cd75cb4f909dc58bd (diff) | |
download | rails-d83558249c69577c3145c1db64870de98411a612.tar.gz rails-d83558249c69577c3145c1db64870de98411a612.tar.bz2 rails-d83558249c69577c3145c1db64870de98411a612.zip |
Merge pull request #29304 from kamipo/should_use_quote_for_string_literal
Should use `quote` for a string literal
-rw-r--r-- | activerecord/lib/active_record/tasks/sqlite_database_tasks.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb b/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb index 7043d2f0c8..01562b21e9 100644 --- a/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb +++ b/activerecord/lib/active_record/tasks/sqlite_database_tasks.rb @@ -42,7 +42,7 @@ module ActiveRecord ignore_tables = ActiveRecord::SchemaDumper.ignore_tables if ignore_tables.any? - condition = ignore_tables.map { |table| connection.quote_table_name(table) }.join(", ") + condition = ignore_tables.map { |table| connection.quote(table) }.join(", ") args << "SELECT sql FROM sqlite_master WHERE tbl_name NOT IN (#{condition}) ORDER BY tbl_name, type DESC, name" else args << ".schema" |