From cd26cdcd974725031e30393ff165fb0dfb365c4d Mon Sep 17 00:00:00 2001 From: Alexey Botchkov Date: Mon, 29 Apr 2019 00:11:48 +0400 Subject: MDEV-19141 server_audit_excl_users accepts only values with less than 1024 chars. Since this limit is imposed by the SHOW_VAR_FUNC_BUFF_SIZE, we just launch the error message. --- mysql-test/suite/plugins/t/server_audit.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'mysql-test/suite/plugins/t/server_audit.test') diff --git a/mysql-test/suite/plugins/t/server_audit.test b/mysql-test/suite/plugins/t/server_audit.test index 4af1ed883e3..fa23dc5caa3 100644 --- a/mysql-test/suite/plugins/t/server_audit.test +++ b/mysql-test/suite/plugins/t/server_audit.test @@ -13,6 +13,14 @@ set global server_audit_incl_users=null; set global server_audit_file_path='server_audit.log'; set global server_audit_output_type=file; set global server_audit_logging=on; + +--error ER_WRONG_VALUE_FOR_VAR +set global server_audit_incl_users= repeat("'root',", 10000); +show variables like 'server_audit_incl_users'; +--error ER_WRONG_VALUE_FOR_VAR +set global server_audit_excl_users= repeat("'root',", 10000); +show variables like 'server_audit_excl_users'; + --sleep 2 connect (con1,localhost,root,,mysql); connection default; -- cgit v1.2.1