-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server: ignore ClientPluginAuthLenencClientData temporarily #1772
Conversation
This is a hot fix, we need investigate it for more detail #1768
Please add a test case. |
We could follow the logic in mysql: https://github.com/mysql/mysql-server/blob/e0e0ae2ea27c9bb76577664845507ef224d362e4/sql-common/client.c#L3694 |
I think we should do it in a real fix, not here, this PR is just a hot fix if necessary. we should find why it fail, what's the best way to solve it; |
I mean any PR should prove its correctness. At lease you should add a test case. |
According to document ,
It's a bug of mysql client, here it is: https://github.com/mysql/mysql-server/blob/5.7/sql-common/client.c#L3478 After |
PTAL @shenli |
LGTM |
@@ -193,9 +193,13 @@ func handshakeResponseFromData(packet *handshakeResponse41, data []byte) error { | |||
pos += len(packet.User) + 1 | |||
|
|||
if capability&mysql.ClientPluginAuthLenencClientData > 0 { | |||
// TODO: Support mysql.ClientPluginAuthLenencClientData, skip it now | |||
// MySQL client set the wrong capability, it will set this bit even server doesn't |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/set/sets
LGTM |
This is a hot fix, we need investigate it for more detail
#1768