Permalink
Browse files

Do not count "SHOW CREATE TABLE" queries when testing against mysql

  • Loading branch information...
amatsuda committed Nov 11, 2013
1 parent 4f08693 commit 331c59f47c04c4f924ff44fa6b9b44a141eb00c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/test_case.rb
@@ -78,7 +78,7 @@ def clear_log; self.log = []; self.log_all = []; end
# 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]
- mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/]
+ 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 331c59f

Please sign in to comment.