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

Bug#10246 - Parser: bad syntax for GRANT EXECUTE

Rename some functions
  more fine-grained sp privileges
  make grant/revoke sp grammar less ambigious
This commit is contained in:
acurtis@xiphis.org
2005-05-17 19:54:20 +01:00
parent be4920cd81
commit 8df5887ad5
14 changed files with 311 additions and 159 deletions

View File

@ -2625,7 +2625,8 @@ bool store_schema_proc(THD *thd, TABLE *table, TABLE *proc_table,
definer= get_field(thd->mem_root, proc_table->field[11]);
if (!full_access)
full_access= !strcmp(sp_user, definer);
if (!full_access && check_some_routine_access(thd, sp_db, sp_name))
if (!full_access && check_some_routine_access(thd, sp_db, sp_name,
proc_table->field[2]->val_int() == TYPE_ENUM_PROCEDURE))
return 0;
if (lex->orig_sql_command == SQLCOM_SHOW_STATUS_PROC &&