diff options
author | unknown <serg@serg.mylan> | 2005-03-07 16:45:19 +0100 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-03-07 16:45:19 +0100 |
commit | 1a1f18a56648d205291c03f0de13b1c27bfcac0b (patch) | |
tree | 9d8661aa4f70c5753b85900d1728a82cf391a71e /sql/protocol.cc | |
parent | 4205b955cd90f0985fb48cc49c31f220e8500985 (diff) | |
download | mariadb-git-1a1f18a56648d205291c03f0de13b1c27bfcac0b.tar.gz |
additional safety
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 6bec4dbe47f..773bbe697a3 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -252,8 +252,9 @@ net_printf(THD *thd, uint errcode, ...) strmake(net->last_error, text_pos, length); strmake(net->sqlstate, mysql_errno_to_sqlstate(errcode), SQLSTATE_LENGTH); #endif - push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, errcode, - text_pos ? text_pos : ER(errcode)); + if (!thd->killed) + push_warning(thd, MYSQL_ERROR::WARN_LEVEL_ERROR, errcode, + text_pos ? text_pos : ER(errcode)); thd->is_fatal_error=0; // Error message is given DBUG_VOID_RETURN; } |