Open xiaoxinw opened 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.75%. Comparing base (
83aa96e
) to head (773e714
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Raise more exact mysql error when the packet is an error packet.
Add logic in _read_packet method to check the packet's first bytes, if it's error packet then raise the exact mysql error returned from server.
I run int to this issue #971 , the message is "InternalError: Packet sequence number wrong...", when I debug more, I find out the packet is an error packet and the packet number is 1 when it is expected to be 2, this case happens when the network is bad, and read data timeout when connect, the real error message is (1159, Got timeout reading communication packets). I think its better to return the exact mysql error, so we can find out what is wrong really.
971
Checklist