mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ignore MySQL "SHOW VARIABLES" when counting queries
This commit is contained in:
parent
6c51cc85da
commit
c8ede23537
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ module ActiveRecord
|
|||
# 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, /^\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]
|
||||
mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/, /^SHOW CREATE TABLE /i, /^SHOW VARIABLES /]
|
||||
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