Skip to content
This repository
Browse code

Merge pull request #12931 from yahonda/add_oracle_ignored

Do not count query for all_constraints and all_tab_cols tested with Oracle
  • Loading branch information...
commit 97eae3b72b7e5eea88cb20266df731374c52f30d 2 parents f60d00c + d7c2958
Yves Senn senny authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/test/cases/test_case.rb
2  activerecord/test/cases/test_case.rb
@@ -77,7 +77,7 @@ def clear_log; self.log = []; self.log_all = []; end
77 77 # FIXME: this needs to be refactored so specific database can add their own
78 78 # ignored SQL, or better yet, use a different notification for the queries
79 79 # instead examining the SQL content.
80   - oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im]
  80 + 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]
81 81 mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/, /^SHOW CREATE TABLE /i]
82 82 postgresql_ignored = [/^\s*select\b.*\bfrom\b.*pg_namespace\b/im, /^\s*select\b.*\battname\b.*\bfrom\b.*\bpg_attribute\b/im, /^SHOW search_path/i]
83 83 sqlite3_ignored = [/^\s*SELECT name\b.*\bFROM sqlite_master/im]

0 comments on commit 97eae3b

Please sign in to comment.
Something went wrong with that request. Please try again.