diff options
author | Matthew Draper <matthew@trebex.net> | 2018-01-03 13:15:07 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 13:15:07 +1030 |
commit | 7098f28853ce0071e7a28b0c443e5faa6c13e7a4 (patch) | |
tree | 6faf7c75da5a49ff89daa33d5e91e78c4ee22a62 /activerecord/test/cases/test_case.rb | |
parent | 4ca73f448187c02b5474cf90dc7c3122ee0760ff (diff) | |
parent | 8dd4868cc12c9697968b6d0c581b3102c557af7c (diff) | |
download | rails-7098f28853ce0071e7a28b0c443e5faa6c13e7a4.tar.gz rails-7098f28853ce0071e7a28b0c443e5faa6c13e7a4.tar.bz2 rails-7098f28853ce0071e7a28b0c443e5faa6c13e7a4.zip |
Merge pull request #31331 from dinahshi/postgresql_bulk_update
Add bulk alter support for PostgreSQL
Diffstat (limited to 'activerecord/test/cases/test_case.rb')
-rw-r--r-- | activerecord/test/cases/test_case.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/test_case.rb b/activerecord/test/cases/test_case.rb index d8c96316ed..024b5bd8a1 100644 --- a/activerecord/test/cases/test_case.rb +++ b/activerecord/test/cases/test_case.rb @@ -116,7 +116,7 @@ module ActiveRecord # instead examining the SQL content. oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im, /^\s*select .* from all_constraints/im, /^\s*select .* from all_tab_cols/im, /^\s*select .* from all_sequences/im] mysql_ignored = [/^SHOW FULL TABLES/i, /^SHOW FULL FIELDS/, /^SHOW CREATE TABLE /i, /^SHOW VARIABLES /, /^\s*SELECT (?:column_name|table_name)\b.*\bFROM information_schema\.(?:key_column_usage|tables)\b/im] - postgresql_ignored = [/^\s*select\b.*\bfrom\b.*pg_namespace\b/im, /^\s*select tablename\b.*from pg_tables\b/im, /^\s*select\b.*\battname\b.*\bfrom\b.*\bpg_attribute\b/im, /^SHOW search_path/i] + postgresql_ignored = [/^\s*select\b.*\bfrom\b.*pg_namespace\b/im, /^\s*select tablename\b.*from pg_tables\b/im, /^\s*select\b.*\battname\b.*\bfrom\b.*\bpg_attribute\b/im, /^SHOW search_path/i, /^\s*SELECT\b.*::regtype::oid\b/im] sqlite3_ignored = [/^\s*SELECT name\b.*\bFROM sqlite_master/im, /^\s*SELECT sql\b.*\bFROM sqlite_master/im] [oracle_ignored, mysql_ignored, postgresql_ignored, sqlite3_ignored].each do |db_ignored_sql| |