mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed BUG#2780: Stored procedure exit handler ignored for warnings.
Actually catch pushed warnings.
This commit is contained in:
@ -43,6 +43,7 @@ This file contains the implementation of error and warnings related
|
||||
***********************************************************************/
|
||||
|
||||
#include "mysql_priv.h"
|
||||
#include "sp_rcontext.h"
|
||||
|
||||
/*
|
||||
Store a new message in an error object
|
||||
@ -108,6 +109,9 @@ MYSQL_ERROR *push_warning(THD *thd, MYSQL_ERROR::enum_warning_level level,
|
||||
|
||||
MYSQL_ERROR *err= NULL;
|
||||
|
||||
if (thd->spcont && thd->spcont->find_handler(code))
|
||||
DBUG_RETURN(NULL);
|
||||
|
||||
if (thd->warn_list.elements < thd->variables.max_error_count)
|
||||
{
|
||||
/*
|
||||
|
Reference in New Issue
Block a user