|
|
|
@ -285,4 +285,15 @@ set @lastid=-1; |
|
|
|
select @lastid != id, @lastid, @lastid := id from t1; |
|
|
|
drop table t1; |
|
|
|
|
|
|
|
# |
|
|
|
# Bug#42188: crash and/or memory corruption with user variables in trigger |
|
|
|
# |
|
|
|
|
|
|
|
CREATE TABLE t1 (i INT); |
|
|
|
CREATE TRIGGER t_after_insert AFTER INSERT ON t1 FOR EACH ROW SET @bug42188 = 10; |
|
|
|
INSERT INTO t1 VALUES (1); |
|
|
|
--change_user |
|
|
|
INSERT INTO t1 VALUES (1); |
|
|
|
DROP TABLE t1; |
|
|
|
|
|
|
|
--echo End of 5.1 tests |