Skip to content

Commit 9a27e8f

Browse files
committed
fix issue cheap way
1 parent 90eaeca commit 9a27e8f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/mysql/connector/protocol.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ def _parse_binary_time(self, packet, field):
461461
length = packet[0]
462462
data = packet[1:length + 1]
463463
mcs = 0
464+
if length == 0:
465+
data = b'\x08\x00\x00\x00\x00\x00\x00\x00\x00'
464466
if length > 8:
465467
mcs = struct.unpack('<I', data[8:])[0]
466468
days = struct.unpack('<I', data[1:5])[0]

0 commit comments

Comments
 (0)