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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user