diff options
author | unknown <jimw@mysql.com> | 2005-08-11 17:04:16 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-08-11 17:04:16 -0700 |
commit | 5550f2b8a7a9488a1f8317d05b2a2471c6219a98 (patch) | |
tree | cdafc43f17feb3e2c94df11c7bcc6df37c52eae3 /sql/sp.h | |
parent | f7f6b3e94e04593430222c5212d1623230fced49 (diff) | |
download | mariadb-git-5550f2b8a7a9488a1f8317d05b2a2471c6219a98.tar.gz |
Avoid spurious error when restoring INFORMATION_SCHEMA as the current
database after failing to execute a stored procedure in an inaccessible
database. (Bug #12318)
mysql-test/r/sp-security.result:
Update results
mysql-test/t/sp-security.test:
Add regression test
sql/mysql_priv.h:
Add additional argument to mysql_change_db()
sql/sp.cc:
Use mysql_change_db(), get rid of sp_change_db().
sql/sp.h:
Get rid of sp_change_db().
sql/sql_db.cc:
Handle no_access_check flag to mysql_change_db, and remove the send_ok()
call.
sql/sql_parse.cc:
Add extra argument to mysql_change_db(), and call send_ok() after
successful calls to same (since it no longer does it for us).
Diffstat (limited to 'sql/sp.h')
-rw-r--r-- | sql/sp.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -112,8 +112,4 @@ int sp_use_new_db(THD *thd, char *newdb, char *olddb, uint olddbmax, bool no_access_check, bool *dbchangedp); -// Like mysql_change_db() but handles empty db name and the send_ok() problem. -int -sp_change_db(THD *thd, char *db, bool no_access_check); - #endif /* _SP_H_ */ |