summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp-code.test
diff options
context:
space:
mode:
authorunknown <malff@lambda.hsd1.co.comcast.net.>2008-03-25 17:35:34 -0600
committerunknown <malff@lambda.hsd1.co.comcast.net.>2008-03-25 17:35:34 -0600
commitce047d4b8d20af49e1a3fa545bc8ae22ae35f4ed (patch)
treecb357a10310ca593a5159d8bdbe51a7a96aac5d8 /mysql-test/t/sp-code.test
parentf1bb7c2019db0ea039ac155ac8723690cdfc69a2 (diff)
parent18801aa8298bfe20a397ec36dd3d72fda694fece (diff)
downloadmariadb-git-ce047d4b8d20af49e1a3fa545bc8ae22ae35f4ed.tar.gz
Merge lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.0-opt
into lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.1-opt-merge mysql-test/r/sp-code.result: Auto merged mysql-test/t/sp-code.test: Auto merged
Diffstat (limited to 'mysql-test/t/sp-code.test')
-rw-r--r--mysql-test/t/sp-code.test32
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/t/sp-code.test b/mysql-test/t/sp-code.test
index 84f0201c808..247c84fda39 100644
--- a/mysql-test/t/sp-code.test
+++ b/mysql-test/t/sp-code.test
@@ -598,6 +598,38 @@ show procedure code proc_33618_c;
drop procedure proc_33618_h;
drop procedure proc_33618_c;
+#
+# Bug#20906 (Multiple assignments in SET in stored routine produce incorrect
+# instructions)
+#
+
+--disable_warnings
+drop procedure if exists p_20906_a;
+drop procedure if exists p_20906_b;
+--enable_warnings
+
+create procedure p_20906_a() SET @a=@a+1, @b=@b+1;
+show procedure code p_20906_a;
+
+set @a=1;
+set @b=1;
+
+call p_20906_a();
+select @a, @b;
+
+create procedure p_20906_b() SET @a=@a+1, @b=@b+1, @c=@c+1;
+show procedure code p_20906_b;
+
+set @a=1;
+set @b=1;
+set @c=1;
+
+call p_20906_b();
+select @a, @b, @c;
+
+drop procedure p_20906_a;
+drop procedure p_20906_b;
+
--echo End of 5.0 tests.
#