mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
5.5 merge
This commit is contained in:
@ -44,6 +44,7 @@ insert t2 values ('2020-10-09');
|
||||
select * from t2;
|
||||
a
|
||||
2020-10-09
|
||||
alter table t2 add column b int;
|
||||
drop table t2;
|
||||
explain select distinct * from t2;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@ -80,8 +81,8 @@ root[root] @ localhost [] mysql.table_stats : write
|
||||
root[root] @ localhost [] mysql.column_stats : write
|
||||
root[root] @ localhost [] mysql.index_stats : write
|
||||
root[root] @ localhost [] >> alter table t2 add column b int
|
||||
root[root] @ localhost [] test.t2 : alter
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
root[root] @ localhost [] test.t2 : alter
|
||||
root[root] @ localhost [] >> create definer=testuser@localhost view v1 as select t2.a+1, t2_copy.a+2 from t2, t2 as t2_copy
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
@ -92,6 +93,7 @@ root[root] @ localhost [] >> drop view v1
|
||||
root[root] @ localhost [] >> create temporary table t2 (a date)
|
||||
root[root] @ localhost [] >> insert t2 values ('2020-10-09')
|
||||
root[root] @ localhost [] >> select * from t2
|
||||
root[root] @ localhost [] >> alter table t2 add column b int
|
||||
root[root] @ localhost [] >> drop table t2
|
||||
root[root] @ localhost [] >> explain select distinct * from t2
|
||||
root[root] @ localhost [] test.t2 : read
|
||||
|
@ -3,3 +3,5 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
||||
show status like 'a%status';
|
||||
Variable_name Value
|
||||
|
10
mysql-test/suite/plugins/r/pam_cleartext.result
Normal file
10
mysql-test/suite/plugins/r/pam_cleartext.result
Normal file
@ -0,0 +1,10 @@
|
||||
install plugin pam soname 'auth_pam.so';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
show variables like 'pam%';
|
||||
Variable_name Value
|
||||
pam_use_cleartext_plugin ON
|
||||
drop user test_pam;
|
||||
drop user pam_test;
|
||||
uninstall plugin pam;
|
@ -38,6 +38,7 @@ drop view v1;
|
||||
create temporary table t2 (a date);
|
||||
insert t2 values ('2020-10-09');
|
||||
select * from t2;
|
||||
alter table t2 add column b int; # MDEV-4565 ALTER on a temporary table generates an audit event
|
||||
drop table t2;
|
||||
|
||||
# internal temp table generates no audit events
|
||||
|
@ -9,3 +9,9 @@ CREATE TABLE t1(a TEXT, b TEXT, FULLTEXT(a) WITH PARSER simple_parser);
|
||||
ALTER TABLE t1 ADD FULLTEXT(b) WITH PARSER simple_parser;
|
||||
DROP TABLE t1;
|
||||
UNINSTALL PLUGIN simple_parser;
|
||||
|
||||
#
|
||||
# Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
|
||||
#
|
||||
show status like 'a%status';
|
||||
|
||||
|
@ -1,16 +1,5 @@
|
||||
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (!$AUTH_PAM_SO) {
|
||||
skip No pam auth plugin;
|
||||
}
|
||||
|
||||
eval install plugin pam soname '$AUTH_PAM_SO';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
|
||||
let $plugindir=`SELECT @@global.plugin_dir`;
|
||||
--source pam_init.inc
|
||||
|
||||
--write_file $MYSQLTEST_VARDIR/tmp/pam_good.txt
|
||||
not very secret challenge
|
||||
|
1
mysql-test/suite/plugins/t/pam_cleartext.opt
Normal file
1
mysql-test/suite/plugins/t/pam_cleartext.opt
Normal file
@ -0,0 +1 @@
|
||||
--loose-pam-use-cleartext-plugin
|
12
mysql-test/suite/plugins/t/pam_cleartext.test
Normal file
12
mysql-test/suite/plugins/t/pam_cleartext.test
Normal file
@ -0,0 +1,12 @@
|
||||
|
||||
--source pam_init.inc
|
||||
|
||||
show variables like 'pam%';
|
||||
|
||||
--error 1
|
||||
--exec echo FAIL | $MYSQL_TEST -u test_pam --plugin-dir=$plugindir
|
||||
|
||||
drop user test_pam;
|
||||
drop user pam_test;
|
||||
uninstall plugin pam;
|
||||
|
14
mysql-test/suite/plugins/t/pam_init.inc
Normal file
14
mysql-test/suite/plugins/t/pam_init.inc
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
--source include/not_embedded.inc
|
||||
|
||||
if (!$AUTH_PAM_SO) {
|
||||
skip No pam auth plugin;
|
||||
}
|
||||
|
||||
eval install plugin pam soname '$AUTH_PAM_SO';
|
||||
create user test_pam identified via pam using 'mariadb_mtr';
|
||||
create user pam_test;
|
||||
grant proxy on pam_test to test_pam;
|
||||
|
||||
let $plugindir=`SELECT @@global.plugin_dir`;
|
||||
|
Reference in New Issue
Block a user