summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp.test
diff options
context:
space:
mode:
authorDavi Arnaut <Davi.Arnaut@Sun.COM>2008-10-15 22:50:56 -0300
committerDavi Arnaut <Davi.Arnaut@Sun.COM>2008-10-15 22:50:56 -0300
commit65253483688b7e9f199cf20299fa1febd264cf5a (patch)
treec3cab179ea83ff8c07c7ff9cf4dedecb061df731 /mysql-test/t/sp.test
parente6fa9496f53503cd3f93d449f2a1d2b6047b7ac4 (diff)
parent3ad228d7fba6fa2e5b98569f798583b8f8b90db9 (diff)
downloadmariadb-git-65253483688b7e9f199cf20299fa1febd264cf5a.tar.gz
Merge mysql-5.0-bugteam into mysql-5.1-bugteam.
Diffstat (limited to 'mysql-test/t/sp.test')
-rw-r--r--mysql-test/t/sp.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/sp.test b/mysql-test/t/sp.test
index c1e8d4b6f6c..632201a9e77 100644
--- a/mysql-test/t/sp.test
+++ b/mysql-test/t/sp.test
@@ -8041,6 +8041,28 @@ delimiter ;$
call `p2`('s s s s s s');
drop procedure `p2`;
+#
+# Bug#38823: Invalid memory access when a SP statement does wildcard expansion
+#
+
+--disable_warnings
+drop table if exists t1;
+drop procedure if exists p1;
+--enable_warnings
+
+delimiter $;
+create procedure p1() begin select * from t1; end$
+--error ER_NO_SUCH_TABLE
+call p1$
+create table t1 (a integer)$
+call p1$
+alter table t1 add b integer;
+call p1$
+delimiter ;$
+
+drop table t1;
+drop procedure p1;
+
--echo # ------------------------------------------------------------------
--echo # -- End of 5.0 tests
--echo # ------------------------------------------------------------------