From 36f34c1c7edbd9f0f4e40cf616acfad77738d573 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 29 Jun 2005 10:35:49 +0400 Subject: Added test for bug #5893 "Triggers with dropped functions cause crashes" (The bug itself was fixed earlier by the patch that fixed bug #5860 "Multi-table UPDATE does not activate update triggers" and several other bugs). mysql-test/r/trigger.result: Added test for bug #5893 "Triggers with dropped functions cause crashes" mysql-test/t/trigger.test: Added test for bug #5893 "Triggers with dropped functions cause crashes" --- mysql-test/r/trigger.result | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'mysql-test/r/trigger.result') diff --git a/mysql-test/r/trigger.result b/mysql-test/r/trigger.result index 996a692d531..0bb1fd1d550 100644 --- a/mysql-test/r/trigger.result +++ b/mysql-test/r/trigger.result @@ -482,3 +482,12 @@ i k ts 1 1 0000-00-00 00:00:00 2 2 0000-00-00 00:00:00 drop table t1, t2; +drop function if exists bug5893; +create table t1 (col1 int, col2 int); +insert into t1 values (1, 2); +create function bug5893 () returns int return 5; +create trigger t1_bu before update on t1 for each row set new.col1= bug5893(); +drop function bug5893; +update t1 set col2 = 4; +ERROR 42000: FUNCTION test.bug5893 does not exist +drop table t1; -- cgit v1.2.1