mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
MDEV-7775 Wrong error message (Unknown error) when idle sessions are killed after wait_timeout
restore the error message that was removed by mistake in ec38c1bbd7
This commit is contained in:
parent
a98ecc2aaf
commit
2220480731
3 changed files with 20 additions and 1 deletions
|
|
@ -1092,7 +1092,8 @@ void end_connection(THD *thd)
|
|||
}
|
||||
|
||||
if (!thd->killed && (net->error && net->vio != 0))
|
||||
thd->print_aborted_warning(1, ER(ER_UNKNOWN_ERROR));
|
||||
thd->print_aborted_warning(1,
|
||||
thd->stmt_da->is_error() ? thd->stmt_da->message() : ER(ER_UNKNOWN_ERROR));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue