diff options
author | malff@lambda.hsd1.co.comcast.net. <> | 2008-01-23 16:21:09 -0700 |
---|---|---|
committer | malff@lambda.hsd1.co.comcast.net. <> | 2008-01-23 16:21:09 -0700 |
commit | e685e7e354e04434d9cb6f775f751bd33457e46a (patch) | |
tree | 66961c82f5a7e86dd00558d87ab981276b5ac800 /mysql-test/t/sp-error.test | |
parent | ec6c4fad89a99fca8d8f36d3a3cd84155b046c29 (diff) | |
download | mariadb-git-e685e7e354e04434d9cb6f775f751bd33457e46a.tar.gz |
Manual merge
Diffstat (limited to 'mysql-test/t/sp-error.test')
-rw-r--r-- | mysql-test/t/sp-error.test | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mysql-test/t/sp-error.test b/mysql-test/t/sp-error.test index 606c2a673bc..286722df65c 100644 --- a/mysql-test/t/sp-error.test +++ b/mysql-test/t/sp-error.test @@ -2306,6 +2306,69 @@ drop table t2; --echo End of 5.1 tests # +# Bug#33983 (Stored Procedures: wrong end <label> syntax is accepted) +# + +--disable_warnings +drop procedure if exists proc_33983_a; +drop procedure if exists proc_33983_b; +drop procedure if exists proc_33983_c; +drop procedure if exists proc_33983_d; +--enable_warnings + +delimiter |; + +--error ER_SP_LABEL_MISMATCH +create procedure proc_33983_a() +begin + label1: + begin + label2: + begin + select 1; + end label1; + end; +end| + +--error ER_SP_LABEL_MISMATCH +create procedure proc_33983_b() +begin + label1: + repeat + label2: + repeat + select 1; + until FALSE end repeat label1; + until FALSE end repeat; +end| + +--error ER_SP_LABEL_MISMATCH +create procedure proc_33983_c() +begin + label1: + while TRUE do + label2: + while TRUE do + select 1; + end while label1; + end while; +end| + +--error ER_SP_LABEL_MISMATCH +create procedure proc_33983_d() +begin + label1: + loop + label2: + loop + select 1; + end loop label1; + end loop; +end| + +delimiter ;| + +# # BUG#NNNN: New bug synopsis # #--disable_warnings |