1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-23915 ER_KILL_DENIED_ERROR not passed a thread id (part 2)

Per Marko's comment in JIRA, sql_kill is passing the thread id
as long long. We change the format of the error messages to match,
and cast the thread id to long long in sql_kill_user.
This commit is contained in:
Daniel Black
2022-03-15 13:30:46 +11:00
parent 99837c61a6
commit 57dbe8785d
2 changed files with 25 additions and 25 deletions

View File

@ -9123,7 +9123,7 @@ void sql_kill_user(THD *thd, LEX_USER *user, killed_state state)
my_ok(thd, rows);
break;
case ER_KILL_DENIED_ERROR:
my_error(error, MYF(0), (unsigned long) thd->thread_id);
my_error(error, MYF(0), (long long) thd->thread_id);
break;
case ER_OUT_OF_RESOURCES:
default: