1
0
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:
pem@mysql.comhem.se
2004-04-06 16:29:38 +02:00
parent 4a6e6251e7
commit 1541f2e794
3 changed files with 52 additions and 0 deletions

View File

@ -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)
{
/*