diff options
author | Georgi Kodinov <kgeorge@mysql.com> | 2008-11-03 12:40:58 +0200 |
---|---|---|
committer | Georgi Kodinov <kgeorge@mysql.com> | 2008-11-03 12:40:58 +0200 |
commit | 34d993ac49b26c38d7e578a761e102dcd91ec807 (patch) | |
tree | 4ec42cd7e4940d9951d522e4b544e099c56e1096 /mysql-test/t/sp.test | |
parent | 54eaadf01c4f5fa823af021600b82274d84e1cd3 (diff) | |
parent | ccef156af4c48499becebd4f8ebd163f59407e2f (diff) | |
download | mariadb-git-34d993ac49b26c38d7e578a761e102dcd91ec807.tar.gz |
merged 5.0 bug 33811 -> 5.1 bug 33811 working tree
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r-- | mysql-test/t/sp.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test index 632201a9e77..05bccae67aa 100644 --- a/mysql-test/t/sp.test +++ b/mysql-test/t/sp.test @@ -7997,8 +7997,24 @@ select (select func30787(f1)) as ttt from t1; drop function func30787; drop table t1; -########################################################################### +# +# Bug #33811: Call to stored procedure with SELECT * / RIGHT JOIN fails +# after the first time +# +CREATE TABLE t1 (id INT); +INSERT INTO t1 VALUES (1),(2),(3),(4); + +CREATE PROCEDURE test_sp() + SELECT t1.* FROM t1 RIGHT JOIN t1 t2 ON t1.id=t2.id; + +CALL test_sp(); +CALL test_sp(); +DROP PROCEDURE test_sp; +DROP TABLE t1; + + +########################################################################### # # Bug#38291 memory corruption and server crash with view/sp/function # |