1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

SP stack trace

This commit is contained in:
halfspawn
2017-05-22 16:57:41 +02:00
committed by Alexander Barkov
parent 8b68263a53
commit d7e3120da8
16 changed files with 84 additions and 22 deletions

View File

@ -434,13 +434,19 @@ bool Sql_cmd_resignal::execute(THD *thd)
/* Check if the old condition still exists. */
if (da->has_sql_condition(signaled->message, strlen(signaled->message)))
{
/* Make room for the new RESIGNAL condition. */
da->reserve_space(thd, 1);
/*
Make room for the new RESIGNAL condition and one for the stack trace
note.
*/
da->reserve_space(thd, 2);
}
else
{
/* Make room for old condition + the new RESIGNAL condition. */
da->reserve_space(thd, 2);
/*
Make room for old condition + the new RESIGNAL condition + the stack
trace note.
*/
da->reserve_space(thd, 3);
da->push_warning(thd, &signaled_err);
}