mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Postfix for #15943. Explicit call of thd->clear_error() is added.
This commit is contained in:
@ -366,18 +366,14 @@ mysqld_show_create(THD *thd, TABLE_LIST *table_list)
|
|||||||
if (!table_list->view || thd->net.last_errno != ER_VIEW_INVALID)
|
if (!table_list->view || thd->net.last_errno != ER_VIEW_INVALID)
|
||||||
DBUG_RETURN(TRUE);
|
DBUG_RETURN(TRUE);
|
||||||
|
|
||||||
/*
|
|
||||||
Need this for proper processing of multiple sql statements
|
|
||||||
sent as single command
|
|
||||||
*/
|
|
||||||
thd->net.report_error= 0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Clear all messages with 'error' level status and
|
Clear all messages with 'error' level status and
|
||||||
issue a warning with 'warning' level status in
|
issue a warning with 'warning' level status in
|
||||||
case of invalid view and last error is ER_VIEW_INVALID
|
case of invalid view and last error is ER_VIEW_INVALID
|
||||||
*/
|
*/
|
||||||
mysql_reset_errors(thd, true);
|
mysql_reset_errors(thd, true);
|
||||||
|
thd->clear_error();
|
||||||
|
|
||||||
push_warning_printf(thd,MYSQL_ERROR::WARN_LEVEL_WARN,
|
push_warning_printf(thd,MYSQL_ERROR::WARN_LEVEL_WARN,
|
||||||
ER_VIEW_INVALID,
|
ER_VIEW_INVALID,
|
||||||
ER(ER_VIEW_INVALID),
|
ER(ER_VIEW_INVALID),
|
||||||
|
Reference in New Issue
Block a user