summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp-threads.test
diff options
context:
space:
mode:
authordlenev@mysql.com <>2005-07-13 13:48:13 +0400
committerdlenev@mysql.com <>2005-07-13 13:48:13 +0400
commitf334ea1fc6f4e9e5be334f4f4c62a3b25c365426 (patch)
treeeb4e973833841f07d83fdb7e830b02e46a90b56a /mysql-test/t/sp-threads.test
parentf5f434cf9ff4a61c513a5f149801f84d8868671a (diff)
downloadmariadb-git-f334ea1fc6f4e9e5be334f4f4c62a3b25c365426.tar.gz
Implementation of Monty's idea: Now we can open mysql.proc table for lookup
of stored routines definitions even if we already have some tables open and locked. To avoid deadlocks in this case we have to put certain restrictions on locking of mysql.proc table. This allows to use stored routines safely under LOCK TABLES without explicitly mentioning mysql.proc in the list of locked tables. It also fixes bug #11554 "Server crashes on statement indirectly using non-cached function".
Diffstat (limited to 'mysql-test/t/sp-threads.test')
-rw-r--r--mysql-test/t/sp-threads.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/sp-threads.test b/mysql-test/t/sp-threads.test
index 8fec5d14bc1..4c192f3e96f 100644
--- a/mysql-test/t/sp-threads.test
+++ b/mysql-test/t/sp-threads.test
@@ -112,6 +112,25 @@ drop procedure bug11158;
drop table t1, t2;
#
+# BUG#11554: Server crashes on statement indirectly using non-cached function
+#
+--disable_warnings
+drop function if exists bug11554;
+drop view if exists v1;
+--enable_warnings
+create table t1 (i int);
+create function bug11554 () returns int return 1;
+create view v1 as select bug11554() as f;
+connection con2root;
+# This should not crash server
+insert into t1 (select f from v1);
+# Clean-up
+connection con1root;
+drop function bug11554;
+drop table t1;
+drop view v1;
+
+#
# BUG#NNNN: New bug synopsis
#
#--disable_warnings