Commit 99ceea5
committed
Add TRANSACTION_PAYLOAD_EVENT and handle unknown event types gracefully
MySQL 8.0.20 introduced TRANSACTION_PAYLOAD_EVENT (type 39) for binlog
transaction compression. This event type is missing from ConstEventType,
causing a ValueError on MySQL 8.0.20+ / 8.4 servers.
Changes:
- Add TRANSACTION_PAYLOAD_EVENT = 39 to ConstEventType enum
- Use tryFrom() instead of from() in EventInfo to gracefully handle
any unrecognized event types instead of crashing
Ref: https://dev.mysql.com/doc/refman/8.4/en/binary-log-transaction-compression.html1 parent 2cb76cd commit 99ceea5
File tree
2 files changed
+2
-1
lines changed- src/MySQLReplication
- Definitions
- Event
2 files changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments