summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2006-02-06 16:07:13 +0100
committerunknown <pem@mysql.com>2006-02-06 16:07:13 +0100
commit5f2b9f4f7c2ce209d45d6d37d72f84f0b6b74f83 (patch)
tree37557482ed81854c7b04d14670263ba8154816ac /mysql-test
parentb948741b6beebb024ae4df23107f9e1f016cb14f (diff)
parent7fd41b20a03e3ce36add69dbd6bdf46e90cf0349 (diff)
downloadmariadb-git-5f2b9f4f7c2ce209d45d6d37d72f84f0b6b74f83.tar.gz
Merge mysql.com:/extern/mysql/bk/mysql-5.0
into mysql.com:/extern/mysql/work/bug16303/mysql-5.0 mysql-test/t/sp-destruct.test: Auto merged sql/sql_parse.cc: Auto merged
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/sp-destruct.result8
-rw-r--r--mysql-test/t/sp-destruct.test11
2 files changed, 17 insertions, 2 deletions
diff --git a/mysql-test/r/sp-destruct.result b/mysql-test/r/sp-destruct.result
index 1b720be9403..4df8086c84e 100644
--- a/mysql-test/r/sp-destruct.result
+++ b/mysql-test/r/sp-destruct.result
@@ -72,6 +72,12 @@ drop trigger t1_ai;
create trigger t1_ai after insert on t1 for each row call bug14233_3();
insert into t1 values (0);
ERROR HY000: Failed to load routine test.bug14233_3. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
-delete from mysql.proc where name like 'bug14233%';
drop trigger t1_ai;
drop table t1;
+drop function bug14233_1;
+drop function bug14233_2;
+drop procedure bug14233_3;
+show procedure status;
+Db Name Type Definer Modified Created Security_type Comment
+show function status;
+Db Name Type Definer Modified Created Security_type Comment
diff --git a/mysql-test/t/sp-destruct.test b/mysql-test/t/sp-destruct.test
index ac74a1be9b0..fb368a1e621 100644
--- a/mysql-test/t/sp-destruct.test
+++ b/mysql-test/t/sp-destruct.test
@@ -119,6 +119,15 @@ create trigger t1_ai after insert on t1 for each row call bug14233_3();
insert into t1 values (0);
# Clean-up
-delete from mysql.proc where name like 'bug14233%';
drop trigger t1_ai;
drop table t1;
+
+#
+# BUG#16303: erroneus stored procedures and functions should be droppable
+#
+drop function bug14233_1;
+drop function bug14233_2;
+drop procedure bug14233_3;
+# Assert: These should show nothing.
+show procedure status;
+show function status;