You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mysql_query_rules has already an option to filter queries returning an error if error_msg is set.
Sometime filtering queries returning an error is not the best option as the client will error if it get an error. For this reason would be better to return an OK message without executing any query to the backend.
Extending mysql_query_rules with a new field: OK_msg
If OK_msg is not NULL, an OK packet is sent to the client with an optional
message as specified in OK_msg itself.
If OK_msg is an not NULL empty string, an OK packet is sent to the client
without any message.
If both error_msg and OK_msg are present, error_msg is returned.
This commit includes also few minor bugs, mostly related to typo that would
prevent online upgrade of mysql_query_rules from early release of 1.4.0 .
mysql_query_rules
has already an option to filter queries returning an error iferror_msg
is set.Sometime filtering queries returning an error is not the best option as the client will error if it get an error. For this reason would be better to return an OK message without executing any query to the backend.
Few examples:
set sort_buffer_size
(see "set sort_buffer_size" is not properly dealt with #1044)ALTER TABLE DISABLE KEYS
(cc @akuzminsky)The text was updated successfully, but these errors were encountered: