-
Notifications
You must be signed in to change notification settings - Fork 680
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
Parse status variables in query event #360
Parse status variables in query event #360
Conversation
Status variables contain useful information: 1. List of databases affected by the query 2. Runtime value of system variables (SQL_MODE, AUTOCOMMIT, CHARSET_SERVER, etc.) 3. timezone of the master For further information please refer to; [Syntax of system variables field in query event](https://dev.mysql.com/doc/internals/en/query-event.html#q-microseconds) [Definition of enumeration for system variable keys](https://github.com/mysql/mysql-server/blob/beb865a960b9a8a16cf999c323e46c5b0c67f21f/libbinlogevents/include/statement_events.h#L463-L532) [Semantics of system variable values](https://github.com/mysql/mysql-server/blob/beb865a960b9a8a16cf999c323e46c5b0c67f21f/libbinlogevents/include/statement_events.h#L156-L448)
Sorry for the delay will look in details next week |
Finnaly got time :D |
Do you have notice a performance issue ? It seem to work fine |
Nope, I've tested the new feature several times but not yet. I appreciate your kindness to review my PR despite your busy schedule. |
with encoding utf8mb4. TODO - file a bug report
Status variables contain useful information:
ㅤ
ㅤ
Users of this library should benefit from new information.
However, if anyone raises performance issues regarding the logic,
this logic can revised to be provided selectively depending on a newly added option.
ㅤ
ㅤ
A status variable in query events is a sequence of status KEY-VALUE pairs.
pymysqlreplication.event.QueryEvent.__init__()
.pymysqlreplication.event.QueryEvent._read_status_vars_value_for_key()
.Added and passed tests.
ㅤ
ㅤ
For further information please refer to;