Commit d0edf322 authored by He Zhenxing's avatar He Zhenxing

Use MyISAM for all tables created in mtr_warnings.sql

parent 6b9e2b9a
...@@ -8,7 +8,7 @@ use mtr|| ...@@ -8,7 +8,7 @@ use mtr||
-- --
CREATE TABLE suspicious_patterns ( CREATE TABLE suspicious_patterns (
pattern VARCHAR(255) pattern VARCHAR(255)
)|| ) ENGINE=MyISAM||
-- --
...@@ -46,7 +46,7 @@ INSERT INTO suspicious_patterns VALUES ...@@ -46,7 +46,7 @@ INSERT INTO suspicious_patterns VALUES
-- --
CREATE TABLE test_supressions ( CREATE TABLE test_supressions (
pattern VARCHAR(255) pattern VARCHAR(255)
)|| ) ENGINE=MyISAM||
-- --
...@@ -69,7 +69,7 @@ END ...@@ -69,7 +69,7 @@ END
-- --
CREATE TABLE global_supressions ( CREATE TABLE global_supressions (
pattern VARCHAR(255) pattern VARCHAR(255)
)|| ) ENGINE=MyISAM||
-- Declare a trigger that makes sure -- Declare a trigger that makes sure
...@@ -227,7 +227,7 @@ BEGIN ...@@ -227,7 +227,7 @@ BEGIN
CREATE TEMPORARY TABLE error_log ( CREATE TEMPORARY TABLE error_log (
row INT AUTO_INCREMENT PRIMARY KEY, row INT AUTO_INCREMENT PRIMARY KEY,
line mediumtext NULL line mediumtext NULL
); ) ENGINE=MyISAM;
SELECT variable_value INTO @log_error SELECT variable_value INTO @log_error
FROM information_schema.global_variables FROM information_schema.global_variables
...@@ -255,7 +255,7 @@ BEGIN ...@@ -255,7 +255,7 @@ BEGIN
WHERE line REGEXP "^CURRENT_TEST:"; WHERE line REGEXP "^CURRENT_TEST:";
DELETE FROM error_log WHERE row < @max_row; DELETE FROM error_log WHERE row < @max_row;
CREATE TEMPORARY TABLE suspect_lines AS CREATE TEMPORARY TABLE suspect_lines ENGINE=MyISAM AS
SELECT DISTINCT el.line, 0 as "supressed" SELECT DISTINCT el.line, 0 as "supressed"
FROM error_log el, suspicious_patterns ep FROM error_log el, suspicious_patterns ep
WHERE el.line REGEXP ep.pattern; WHERE el.line REGEXP ep.pattern;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment