File tree Expand file tree Collapse file tree 3 files changed +1
-43
lines changed
Expand file tree Collapse file tree 3 files changed +1
-43
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ public async Task ConnectAsync(CancellationToken cancellationToken = default)
8888 ? errorPacket . ErrorMessage
8989 : "Authentication failed" ;
9090 throw new InvalidOperationException ( $ "MySQL authentication failed: { errorMsg } (Error { errorPacket . ErrorCode } )") ;
91- case EOFPacket eofPacket :
92- throw new InvalidOperationException ( $ "MySQL authentication failed.") ;
9391 default :
9492 throw new InvalidOperationException ( $ "Unexpected packet received during authentication: { authResult ? . GetType ( ) . Name ?? "null" } ") ;
9593 }
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ static MySQLPacketFactory()
1515 ClientInstance = new MySQLPacketFactory ( )
1616 . RegisterPacketType < HandshakePacket > ( - 1 )
1717 . RegisterPacketType < OKPacket > ( 0x00 )
18- . RegisterPacketType < ErrorPacket > ( 0xFF )
19- . RegisterPacketType < EOFPacket > ( 0xFE ) ;
18+ . RegisterPacketType < ErrorPacket > ( 0xFF ) ;
2019 }
2120
2221 private readonly Dictionary < int , Func < MySQLPacket > > _packetCreators = new ( ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments