diff options
author | unknown <pem@mysql.comhem.se> | 2004-03-22 14:44:41 +0100 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-03-22 14:44:41 +0100 |
commit | af7bb7bdccbf29987959277f65d810a6b33c9860 (patch) | |
tree | e2093fe206e23fb00b58e65431a5409e74f2751e /sql/sp.h | |
parent | 2242bd3a66c8e3b08ff9729892312ebc9715c5ab (diff) | |
download | mariadb-git-af7bb7bdccbf29987959277f65d810a6b33c9860.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 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -28,6 +28,10 @@ #define SP_PARSE_ERROR -6 #define SP_INTERNAL_ERROR -7 +/* Drop all routines in database 'db' */ +int +sp_drop_db_routines(THD *thd, char *db); + sp_head * sp_find_procedure(THD *thd, sp_name *name); |