The first byte of payload in RowsQueryEvent must be ignored without being used as the length for the following field query. Yet, the existing code did use this value as length for query and fails whenever parsing query longer than 255 characters which is the maximum value that a single byte can hold.
This also crashes for our MySQL 8.035. Would love to see it merged in. We are having to use: poetry add git+ssh://git@github.com:dongwook-chan/python-mysql-replication.git
Description
The first byte of payload in RowsQueryEvent must be ignored without being used as the length for the following field
query
. Yet, the existing code did use this value as length forquery
and fails whenever parsing query longer than 255 characters which is the maximum value that a single byte can hold.I fixed the bug referring to code from msql-server.
Other clients in different languages implement the RowsQueryEvent the way mysql-server does and noted below as references.
Type of Change
Checklist
Tests
Additional Information