Skip to content

fix last order column only when DML #516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pymysqlreplication/row_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ def _read_column_data(self, cols_bitmap):
column = self.columns[i]
name = self.table_map[self.table_id].columns[i].name
unsigned = self.table_map[self.table_id].columns[i].unsigned

if not name:
# If you are using mysql 5.7 or mysql 8, but binlog_row_metadata = "MINIMAL",
# we do not know the column information.
# If you know column information,
# mysql 5.7 version Users Use Under 1.0 version
# mysql 8.0 version Users Set binlog_row_metadata = "FULL"
name = "UNKNOWN_COL" + str(i)
values[name] = self.__read_values_name(
column,
null_bitmap,
Expand Down