1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Now when we create or drop trigger we will open only subject table and not

all tables suggested by prelocking algorithm.
Added test for bug #11889 "Server crashes when dropping trigger using stored
routine" (which was fixed by previous patch).
This commit is contained in:
dlenev@mysql.com
2005-07-13 23:51:09 +04:00
parent 4a5c65e146
commit 14b93bf18a
3 changed files with 11 additions and 5 deletions

View File

@ -317,7 +317,7 @@ drop trigger t1.trg;
drop trigger t1.trg;
create view v1 as select * from t1;
--error 1361
--error 1347
create trigger trg before insert on v1 for each row set @a:=1;
drop view v1;
@ -576,6 +576,8 @@ drop table t1, t2;
# Test for bug #5893 "Triggers with dropped functions cause crashes"
# Appropriate error should be reported instead of crash.
# Also test for bug #11889 "Server crashes when dropping trigger
# using stored routine".
--disable_warnings
drop function if exists bug5893;
--enable_warnings
@ -586,4 +588,6 @@ create trigger t1_bu before update on t1 for each row set new.col1= bug5893();
drop function bug5893;
--error 1305
update t1 set col2 = 4;
# This should not crash server too.
drop trigger t1.t1_bu;
drop table t1;