2012-11-08 14:17:53 +01:00
|
|
|
|
2012-11-22 10:19:31 +01:00
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
2012-11-07 19:07:47 +01:00
|
|
|
if (!$ADT_NULL_SO) {
|
|
|
|
skip No NULL_AUDIT plugin;
|
|
|
|
}
|
|
|
|
|
|
|
|
set @old_global_general_log=@@global.general_log;
|
|
|
|
set global general_log=OFF;
|
|
|
|
|
2012-11-08 14:17:53 +01:00
|
|
|
--disable_ps_protocol
|
2012-11-07 19:07:47 +01:00
|
|
|
install plugin audit_null soname 'adt_null';
|
|
|
|
|
|
|
|
select 1;
|
|
|
|
--error 1054
|
|
|
|
select foobar;
|
2012-11-08 16:49:07 +01:00
|
|
|
|
|
|
|
show status like 'audit_null%';
|
|
|
|
|
|
|
|
create procedure au1(x char(16)) select concat("test1", x);
|
|
|
|
call au1("-12");
|
|
|
|
|
2012-11-07 19:07:47 +01:00
|
|
|
show status like 'audit_null%';
|
|
|
|
|
|
|
|
uninstall plugin audit_null;
|
2012-11-08 14:17:53 +01:00
|
|
|
--enable_ps_protocol
|
2012-11-07 19:07:47 +01:00
|
|
|
|
2012-11-08 16:49:07 +01:00
|
|
|
drop procedure au1;
|
2012-11-07 19:07:47 +01:00
|
|
|
set global general_log=@old_global_general_log;
|
|
|
|
|