Skip to content

Commit dc2c1cf

Browse files
authored
Merge branch 'main' into feature/partial-update-row-event
2 parents d76c6f3 + 72b53a8 commit dc2c1cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pymysqlreplication/row_event.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ def _read_column_data(self, cols_bitmap, row_image_type=None):
143143
if BitGet(partial_bitmap, partial_bitmap_index) > 0:
144144
is_partial = True
145145
partial_bitmap_index += 1
146+
147+
if not name:
148+
# If you are using mysql 5.7 or mysql 8, but binlog_row_metadata = "MINIMAL",
149+
# we do not know the column information.
150+
# If you know column information,
151+
# mysql 5.7 version Users Use Under 1.0 version
152+
# mysql 8.0 version Users Set binlog_row_metadata = "FULL"
153+
name = "UNKNOWN_COL" + str(i)
146154
values[name] = self.__read_values_name(
147155
column,
148156
null_bitmap,

0 commit comments

Comments
 (0)