DBZ-5273 Support using variables in KILL command

This commit is contained in:
Vojtech Juranek 2022-06-20 11:03:56 +02:00 committed by Jiri Pechanec
parent 17da915bd1
commit 5f1d420fb5
2 changed files with 9 additions and 1 deletions

View File

@ -1861,7 +1861,7 @@ flushStatement
killStatement killStatement
: KILL connectionFormat=(CONNECTION | QUERY)? : KILL connectionFormat=(CONNECTION | QUERY)?
decimalLiteral+ (decimalLiteral+ | mysqlVariable)
; ;
loadIndexIntoCache loadIndexIntoCache

View File

@ -0,0 +1,8 @@
#begin
KILL CONNECTION 12345;
KILL QUERY 12345;
KILL CONNECTION @conn_variable;
KILL QUERY @query_variable;
KILL CONNECTION @@global_variable;
KILL QUERY @@global_variable;
#end