polardbxengine/mysql-test/suite/x/r/admin_kill_client_mysqlx.re...

46 lines
1.1 KiB
Plaintext

create user unpriv@localhost;
set password for unpriv@localhost = 'x';
client_id user host sql_session
1 x_root localhost $SESSION
command ok
Got expected error: Invalid number of arguments, expected 0 but got 1 (code 5015)
connecting...
active session is now 'aux'
client_id user host sql_session
1 x_root localhost $SESSION
2 x_root localhost $SESSION
command ok
switched to session default
client_id user host sql_session
1 x_root localhost $SESSION
2 x_root localhost $SESSION
command ok
Got expected error: Invalid number of arguments, expected value for 'id' (code 5015)
command ok
client_id user host sql_session
1 x_root localhost $SESSION
command ok
connecting...
active session is now 'unpriv'
Should list unprivs session only
client_id user host sql_session
3 unpriv localhost $SESSION
command ok
Got expected error: You are not owner of thread (code 1095)
switched to session default
client_id user host sql_session
1 x_root localhost $SESSION
3 unpriv localhost $SESSION
command ok
command ok
client_id user host sql_session
1 x_root localhost $SESSION
command ok
Mysqlx.Ok {
msg: "bye!"
}
ok
drop user unpriv@localhost;