Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e439b6

Browse files
author
Chungeun Choi
authoredSep 12, 2023
Fix parsing of incorrect bytes in 'extradata' for 'rows event' (julien-duponchelle#469)
1 parent fcc447b commit 2e439b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pymysqlreplication/row_event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __init__(self, from_packet, event_size, table_map, ctl_connection, **kwargs)
6363

6464
# ndb information
6565
if self.extra_data_type == 0:
66-
self.nbd_info_length, self.nbd_info_format = struct.unpack('<BB', self.packet.read(1))
66+
self.nbd_info_length, self.nbd_info_format = struct.unpack('<BB', self.packet.read(2))
6767
self.nbd_info = self.packet.read(self.nbd_info_length - 2)
6868
# partition information
6969
elif self.extra_data_type == 1:

0 commit comments

Comments
 (0)
Please sign in to comment.