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:
committed by
Alexander Barkov
parent
8b68263a53
commit
d7e3120da8
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user