mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
5.5 merge
This commit is contained in:
@@ -8,6 +8,8 @@ if (!$ADT_NULL_SO) {
|
||||
set @old_global_general_log=@@global.general_log;
|
||||
set global general_log=OFF;
|
||||
|
||||
grant select on *.* to testuser@localhost;
|
||||
|
||||
--disable_ps_protocol
|
||||
install plugin audit_null soname 'adt_null';
|
||||
|
||||
@@ -22,9 +24,36 @@ call au1("-12");
|
||||
|
||||
show status like 'audit_null%';
|
||||
|
||||
create table t1 (a int);
|
||||
insert t1 values (1), (2);
|
||||
select * from t1;
|
||||
rename table t1 to t2;
|
||||
alter table t2 add column b int;
|
||||
|
||||
create definer=testuser@localhost view v1 as select t2.a+1, t2_copy.a+2 from t2, t2 as t2_copy;
|
||||
select * from v1;
|
||||
drop view v1;
|
||||
|
||||
# temp table generates no audit events
|
||||
create temporary table t2 (a date);
|
||||
insert t2 values ('2020-10-09');
|
||||
select * from t2;
|
||||
drop table t2;
|
||||
|
||||
# internal temp table generates no audit events
|
||||
explain select distinct * from t2;
|
||||
select distinct * from t2;
|
||||
|
||||
drop table t2;
|
||||
|
||||
uninstall plugin audit_null;
|
||||
--enable_ps_protocol
|
||||
|
||||
drop procedure au1;
|
||||
drop user testuser@localhost;
|
||||
set global general_log=@old_global_general_log;
|
||||
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
--replace_regex /#sql-[0-9a-f_]*/#sql-temporary/ /#sql2-[-0-9a-f_]*/#sql2-temporary/ /::1// /127.0.0.1//
|
||||
cat_file $MYSQLD_DATADIR/audit_null_tables.log;
|
||||
|
||||
|
@@ -4,5 +4,8 @@ drop table t1;
|
||||
# the query was invalidated
|
||||
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
|
||||
|
||||
set global query_cache_size = 0;
|
||||
select * from information_schema.query_cache_info;
|
||||
|
||||
set global query_cache_size= default;
|
||||
|
||||
|
@@ -1,4 +1,7 @@
|
||||
--source include/not_embedded.inc
|
||||
# If we run this as root, $USER gets authenticated as the `root' user, and we
|
||||
# get .result differences from CURRENT_USER().
|
||||
--source include/not_as_root.inc
|
||||
|
||||
if (!$AUTH_SOCKET_SO) {
|
||||
skip No auth_socket plugin;
|
||||
|
Reference in New Issue
Block a user