julien-duponchelle / python-mysql-replication

Pure Python Implementation of MySQL replication protocol build on top of PyMYSQL
2.33k stars 679 forks source link

What are "server_version_split" and "number_of_event_types" in "FormatDescriptionEvent" class? #626

Open davisgogogo opened 1 day ago

davisgogogo commented 1 day ago

code reference:

https://github.com/julien-duponchelle/python-mysql-replication/blob/ea61cca85fd1f526f393829ee5eb50dda42ff86e/pymysqlreplication/event.py#L397 https://github.com/julien-duponchelle/python-mysql-replication/blob/ea61cca85fd1f526f393829ee5eb50dda42ff86e/pymysqlreplication/event.py#L398

There are two attributes, "server_version_split" and "number_of_event_types", and i have not find those two fields in MySQL documents (I saw https://dev.mysql.com/doc/dev/mysql-server/8.0.40/page_protocol_replication_binlog_event.html).

So what are they? Maybe they are in some older MySQL version?

Thanks.