mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +03:00
additional safety
This commit is contained in:
@@ -252,6 +252,7 @@ net_printf(THD *thd, uint errcode, ...)
|
|||||||
strmake(net->last_error, text_pos, length);
|
strmake(net->last_error, text_pos, length);
|
||||||
strmake(net->sqlstate, mysql_errno_to_sqlstate(errcode), SQLSTATE_LENGTH);
|
strmake(net->sqlstate, mysql_errno_to_sqlstate(errcode), SQLSTATE_LENGTH);
|
||||||
#endif
|
#endif
|
||||||
|
if (!thd->killed)
|
||||||
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, errcode,
|
push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, errcode,
|
||||||
text_pos ? text_pos : ER(errcode));
|
text_pos ? text_pos : ER(errcode));
|
||||||
thd->is_fatal_error=0; // Error message is given
|
thd->is_fatal_error=0; // Error message is given
|
||||||
|
Reference in New Issue
Block a user