mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Do not count query for all_constraints and all_tab_cols in Oracle
This commit is contained in:
parent
f60d00c56e
commit
d7c2958a03
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ module ActiveRecord
|
|||
# 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]
|
||||
|
|
Loading…
Reference in a new issue