1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

WL#1365: Implement definer's rights execution of stored procedures.

(Also put the hostpart back in the definer column.)
This commit is contained in:
pem@mysql.comhem.se
2003-12-13 16:40:52 +01:00
parent 2796e299e6
commit 07541b6abf
14 changed files with 392 additions and 67 deletions

View File

@@ -3495,6 +3495,7 @@ mysql_execute_command(THD *thd)
}
else
{
st_sp_security_context save_ctx;
uint smrx;
LINT_INIT(smrx);
@@ -3526,8 +3527,12 @@ mysql_execute_command(THD *thd)
thd->server_status |= SERVER_MORE_RESULTS_EXISTS;
}
sp_change_security_context(thd, sp, &save_ctx);
res= sp->execute_procedure(thd, &lex->value_list);
sp_restore_security_context(thd, sp, &save_ctx);
#ifndef EMBEDDED_LIBRARY
thd->net.no_send_ok= nsok;
#endif