summaryrefslogtreecommitdiff
path: root/mysql-test/t/trigger.test
diff options
context:
space:
mode:
authorunknown <dlenev@mysql.com>2006-01-31 14:43:41 +0300
committerunknown <dlenev@mysql.com>2006-01-31 14:43:41 +0300
commit4675b563e29feba00e73adedfc285c6d19998401 (patch)
tree6a3266ff11b98d940154210e82d4c3cf88ca7151 /mysql-test/t/trigger.test
parent107ad3a03e2b76da117bc05624e807d9936fe73f (diff)
parenta1b67ce2a237c1f5e487e425e51db5e9fc0e6371 (diff)
downloadmariadb-git-4675b563e29feba00e73adedfc285c6d19998401.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-bg16829 mysql-test/r/trigger.result: Auto merged mysql-test/t/trigger.test: Auto merged
Diffstat (limited to 'mysql-test/t/trigger.test')
-rw-r--r--mysql-test/t/trigger.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/trigger.test b/mysql-test/t/trigger.test
index 492e37d9543..c3cc8e3f8e8 100644
--- a/mysql-test/t/trigger.test
+++ b/mysql-test/t/trigger.test
@@ -958,3 +958,12 @@ create trigger test.t1_bi before insert on t1 for each row set @a:=0;
--error ER_NO_DB_ERROR
drop trigger t1_bi;
connection default;
+
+# Test for bug #16829 "Firing trigger with RETURN crashes the server"
+# RETURN is not supposed to be used anywhere except functions, so error
+# should be returned when one attempts to create trigger with RETURN.
+create table t1 (i int);
+--error ER_SP_BADRETURN
+create trigger t1_bi before insert on t1 for each row return 0;
+insert into t1 values (1);
+drop table t1;