| 1 |
--source include/no_ps_protocol.inc |
| 2 |
--source include/have_null_audit_plugin.inc |
| 3 |
|
| 4 |
--replace_regex /\.dll/.so/ |
| 5 |
eval INSTALL PLUGIN null_audit SONAME '$AUDIT_NULL'; |
| 6 |
INSTALL COMPONENT "file://component_test_audit_api_message"; |
| 7 |
|
| 8 |
SET @@null_audit_event_order_check = 'MYSQL_AUDIT_COMMAND_START;command_id="3";;' |
| 9 |
'MYSQL_AUDIT_PARSE_PREPARSE;;;' |
| 10 |
'MYSQL_AUDIT_PARSE_POSTPARSE;;;' |
| 11 |
'MYSQL_AUDIT_GENERAL_LOG;;;' |
| 12 |
'MYSQL_AUDIT_QUERY_START;sql_command_id="0";;' |
| 13 |
'MYSQL_AUDIT_MESSAGE_USER;component="test_audit_api_message" producer="test_audit_api_message" message="test_audit_api_message_user" key[0]="my_string_key" value[0]="my_string_value";ABORT_RET'; |
| 14 |
|
| 15 |
--error ER_AUDIT_API_ABORT |
| 16 |
SELECT test_audit_api_message_user(); |
| 17 |
SELECT @@null_audit_event_order_check; |
| 18 |
|
| 19 |
UNINSTALL COMPONENT "file://component_test_audit_api_message"; |
| 20 |
UNINSTALL PLUGIN null_audit; |