diff options
author | Sergey Glukhov <gluh@mysql.com> | 2008-08-20 16:42:01 +0500 |
---|---|---|
committer | Sergey Glukhov <gluh@mysql.com> | 2008-08-20 16:42:01 +0500 |
commit | fad69f17c1323b1ab700d4e9363c6f50341b3711 (patch) | |
tree | 3a450116a7ea8608a8d2e04921b67e9e6b2520de /mysql-test/t/sp.test | |
parent | b9bfa25fb20d410bf83925df9c813beca95025b4 (diff) | |
parent | de73b729543f40f46463c0134e380057ee4adb27 (diff) | |
download | mariadb-git-fad69f17c1323b1ab700d4e9363c6f50341b3711.tar.gz |
5.0-bugteam->5.1-bugteam merge
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r-- | mysql-test/t/sp.test | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test index fd7410f2b43..8477211f524 100644 --- a/mysql-test/t/sp.test +++ b/mysql-test/t/sp.test @@ -7999,6 +7999,30 @@ drop table t1; ########################################################################### +# +# Bug#38291 memory corruption and server crash with view/sp/function +# + +create table t1(c1 INT); +create function f1(p1 int) returns varchar(32) + return 'aaa'; +create view v1 as select f1(c1) as parent_control_name from t1; + +delimiter //; +create procedure p1() +begin + select parent_control_name as c1 from v1; +end // +delimiter ;// + +call p1(); +call p1(); + +drop procedure p1; +drop function f1; +drop view v1; +drop table t1; + --echo # ------------------------------------------------------------------ --echo # -- End of 5.0 tests --echo # ------------------------------------------------------------------ |