Support mysql client 8.0 connection fe (#1349)

for example:
mysql --default-auth=mysql_native_password -P9030 -utest -ptest123456 -hA.B.C.D
This commit is contained in:
worker24h
2019-06-21 19:15:34 +08:00
committed by ZHAO Chun
parent 4aaeb8789c
commit ea71277094
3 changed files with 6 additions and 5 deletions

View File

@ -77,7 +77,7 @@ public class MysqlHandshakePacketTest {
flags |= MysqlProto.readInt2(buffer) << 16;
Assert.assertEquals(MysqlCapability.DEFAULT_CAPABILITY.getFlags(), flags);
// length of plugin data
Assert.assertEquals(0, MysqlProto.readInt1(buffer));
Assert.assertEquals(21, MysqlProto.readInt1(buffer));
// length of plugin data
byte[] toCheck = new byte[10];
byte[] reserved = MysqlProto.readFixedString(buffer, 10);
@ -92,7 +92,7 @@ public class MysqlHandshakePacketTest {
// one byte
Assert.assertEquals(0, MysqlProto.readInt1(buffer));
Assert.assertEquals(0, buffer.remaining());
Assert.assertEquals(22, buffer.remaining());
}
}