databendlabs / bendsql

Databend Native Client
Apache License 2.0
49 stars 26 forks source link

bug: invalid utf-8 sequence of 1 bytes from index 2 #462

Closed TCeason closed 3 months ago

TCeason commented 3 months ago

Summary

root@localhost:8000/default> create user 'u01' identified by 'mS%aFRZW*GW';

CREATE user 'u01' IDENTIFIED by 'mS%aFRZW*GW'

0 row written in 0.022 sec. Processed 0 row, 0 B (0 row/s, 0 B/s)

root@localhost:8000/default> quit
Bye~
vagrant@mk:~$ bendsql -uu01 -p'mS%aFRZW*GW'
Error: APIError: ParsingError: invalid utf-8 sequence of 1 bytes from index 2

But MySQL client is ok.

$ mysql -uu01 -pmS%aFRZW*GW -h127.0.0.1 -P3307
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.26-v1.2.536-nightly-ff0db1fdfc(rust-1.78.0-nightly-2024-07-22T12:11:48.572794477Z) 0

Copyright (c) 2000, 2024, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>
TCeason commented 3 months ago

cc @everpcpc Please take a look