1
# - Check SHOW CREATE statement;
6
SHOW CREATE TRIGGER trg1|
8
SHOW CREATE TRIGGER trg2|
10
SHOW CREATE TRIGGER mysqltest2.trg3|
12
SHOW CREATE TRIGGER mysqltest2.trg4|
14
# - Check SHOW statement;
31
# - Check INFORMATION_SCHEMA;
36
--replace_column 17 CREATED
37
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg1'|
40
--replace_column 17 CREATED
41
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg2'|
44
--replace_column 17 CREATED
45
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg3'|
48
--replace_column 17 CREATED
49
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS WHERE trigger_name = 'trg4'|
51
# - Initialize the used variables (actual values don't matter);
64
# - Execute the triggers;
69
INSERT INTO t1 VALUES(1)|
77
COLLATION(@a1) AS ca1,
78
COLLATION(@a2) AS ca2,
79
COLLATION(@a3) AS ca3,
80
COLLATION(@b1) AS cb1,
81
COLLATION(@b2) AS cb2,
82
COLLATION(@b3) AS cb3|
90
INSERT INTO mysqltest2.t1 VALUES(1)|
94
SELECT msg FROM mysqltest2.log|
98
COLLATION(@a1) AS ca1,
99
COLLATION(@a2) AS ca2,
100
COLLATION(@a3) AS ca3,
101
COLLATION(@b1) AS cb1,
102
COLLATION(@b2) AS cb2,
103
COLLATION(@b3) AS cb3|
106
DELETE FROM mysqltest2.log|