mirror of
https://github.com/MariaDB/server.git
synced 2026-05-01 12:45:41 +02:00
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.
This commit is contained in:
parent
d2ad3cff19
commit
645d19f694
9 changed files with 134 additions and 8 deletions
|
|
@ -40,6 +40,9 @@ sp_head *sp_cache_lookup(sp_cache **cp, sp_name *name);
|
|||
/* Remove an SP from cache. Returns true if something was removed */
|
||||
bool sp_cache_remove(sp_cache **cp, sp_name *name);
|
||||
|
||||
/* Invalidate a cache */
|
||||
void sp_cache_invalidate();
|
||||
|
||||
|
||||
/*
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue