Permalink
Browse files

Do not count query for all_constraints and all_tab_cols in Oracle

  • Loading branch information...
1 parent f60d00c commit d7c2958a03c1627d61f3aa982cbc3cb8fdb2440c @yahonda yahonda committed Nov 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/test_case.rb
@@ -77,7 +77,7 @@ def clear_log; self.log = []; self.log_all = []; end
# FIXME: this needs to be refactored so specific database can add their own
# ignored SQL, or better yet, use a different notification for the queries
# instead examining the SQL content.
- oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im]
+ 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]
mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/, /^SHOW CREATE TABLE /i]
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]
sqlite3_ignored = [/^\s*SELECT name\b.*\bFROM sqlite_master/im]

0 comments on commit d7c2958

Please sign in to comment.