Skip to content

Commit 331c59f

Browse files
committed
Do not count "SHOW CREATE TABLE" queries when testing against mysql
1 parent 4f08693 commit 331c59f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def clear_log; self.log = []; self.log_all = []; end
7878
# ignored SQL, or better yet, use a different notification for the queries
7979
# instead examining the SQL content.
8080
oracle_ignored = [/^select .*nextval/i, /^SAVEPOINT/, /^ROLLBACK TO/, /^\s*select .* from all_triggers/im]
81-
mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/]
81+
mysql_ignored = [/^SHOW TABLES/i, /^SHOW FULL FIELDS/, /^SHOW CREATE TABLE /i]
8282
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]
8383
sqlite3_ignored = [/^\s*SELECT name\b.*\bFROM sqlite_master/im]
8484

0 commit comments

Comments
 (0)