1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#9993 2 unexpected warnings when dropping a routine and --skip-grant-tables

- Dont perform automatic privilege handling for stored procedures when server is started --skip-grant-tables
 - Renamed view_skip_grants to skip_grants and added test cases for this
This commit is contained in:
msvensson@neptunus.(none)
2005-05-26 16:44:46 +02:00
parent be4920cd81
commit 8401cd5d79
6 changed files with 18 additions and 5 deletions

View File

@ -3982,7 +3982,7 @@ unsent_create_error:
lex->sphead= 0;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
/* only add privileges if really neccessary */
if (sp_automatic_privileges &&
if (sp_automatic_privileges && !opt_noacl &&
check_procedure_access(thd, DEFAULT_CREATE_PROC_ACLS,
db, name, 1))
{
@ -4247,7 +4247,7 @@ unsent_create_error:
if (check_procedure_access(thd, ALTER_PROC_ACL, db, name, 0))
goto error;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
if (sp_automatic_privileges &&
if (sp_automatic_privileges && !opt_noacl &&
sp_revoke_privileges(thd, db, name))
{
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_WARN,