summaryrefslogtreecommitdiff
path: root/mysql-test/t/sp-security.test
diff options
context:
space:
mode:
authorunknown <pem@mysql.comhem.se>2004-03-22 14:44:41 +0100
committerunknown <pem@mysql.comhem.se>2004-03-22 14:44:41 +0100
commit645d19f694c1237d4c9d34475dcbdc541e9f35d6 (patch)
treee2093fe206e23fb00b58e65431a5409e74f2751e /mysql-test/t/sp-security.test
parentd2ad3cff192de352961ec01f5370821690d7173f (diff)
downloadmariadb-git-645d19f694c1237d4c9d34475dcbdc541e9f35d6.tar.gz
WL#1366: Use the schema (db) associated with an SP.
Phase 4 (final): Remove associated stored procedures when a database is dropped. mysql-test/r/sp-security.result: drop database now deletes associated SPs. mysql-test/r/sp.result: drop database now deletes associated SPs. mysql-test/t/sp-security.test: drop database now deletes associated SPs. mysql-test/t/sp.test: drop database now deletes associated SPs. sql/sp.cc: New function for deleting all SPs associated with a database. sql/sp.h: New function for deleting all SPs associated with a database. sql/sp_cache.cc: New function for just invalidating all SP caches (when dropping a database). sql/sp_cache.h: New function for just invalidating all SP caches (when dropping a database). sql/sql_db.cc: When dropping a database, also delete all associated SPs.
Diffstat (limited to 'mysql-test/t/sp-security.test')
-rw-r--r--mysql-test/t/sp-security.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/mysql-test/t/sp-security.test b/mysql-test/t/sp-security.test
index ae977684129..8fc51357bc4 100644
--- a/mysql-test/t/sp-security.test
+++ b/mysql-test/t/sp-security.test
@@ -163,11 +163,11 @@ select * from t2;
# Clean up
connection con1root;
-drop procedure db1_secret.stamp;
-drop function db1_secret.db;
-drop procedure db2.p;
-drop procedure db2.q;
use test;
+select type,db,name from mysql.proc;
drop database db1_secret;
drop database db2;
+# Make sure the routines are gone
+select type,db,name from mysql.proc;
+# Get rid of the users
delete from mysql.user where user='user1' or user='user2';