Skip to content

Commit 3e839c7

Browse files
committed
Add when column name list length 0
It measns Now BINLOG_ROW_METADATA = FULL but still remain BINLOG_ROW_METADATA Mode = MINIMAL in Binlog
1 parent bc1ee8c commit 3e839c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pymysqlreplication/row_event.py

+3
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,9 @@ def _sync_column_info(self):
807807
if not self.__optional_meta_data:
808808
# If optional_meta_data is False Do not sync Event Time Column Schemas
809809
return
810+
if len(self.optional_metadata.column_name_list) == 0:
811+
# May Be Now BINLOG_ROW_METADATA = FULL But Before Action BINLOG_ROW_METADATA Mode = MINIMAL
812+
return
810813
charset_pos = 0
811814
enum_or_set_pos = 0
812815
enum_pos = 0

0 commit comments

Comments
 (0)