diff --git a/query/src/servers/mysql/mysql_interactive_worker.rs b/query/src/servers/mysql/mysql_interactive_worker.rs index c72c71aec023..fac6b796c0fb 100644 --- a/query/src/servers/mysql/mysql_interactive_worker.rs +++ b/query/src/servers/mysql/mysql_interactive_worker.rs @@ -377,7 +377,7 @@ impl InteractiveWorker { let mut scramble: [u8; 20] = [0; 20]; for i in 0..20 { - scramble[i] = bs[i]; + scramble[i] = bs[i] & 0x7fu8; if scramble[i] == b'\0' || scramble[i] == b'$' { scramble[i] += 1; }