Skip to content

Commit 5eeccca

Browse files
committed
Merge 11.4 into 11.8
2 parents fc37cdd + 426c2a6 commit 5eeccca

25 files changed

+1084
-131
lines changed

mysql-test/main/information_schema_db.result

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -213,11 +213,8 @@ connection default;
213213
use test;
214214
drop view testdb_1.v1, v2, testdb_1.v3, v4;
215215
drop database testdb_1;
216-
connection testdb_1;
217216
disconnect testdb_1;
218-
connection testdb_2;
219217
disconnect testdb_2;
220-
connection default;
221218
drop user testdb_1@localhost;
222219
drop user testdb_2@localhost;
223220
#
@@ -249,18 +246,18 @@ ERROR 42000: SELECT command denied to user 'mysqltest_1'@'localhost' for table `
249246
connection default;
250247
drop user mysqltest_1@localhost;
251248
drop database testdb_1;
252-
connection user1;
253249
disconnect user1;
254-
connection default;
255250
set global sql_mode=default;
256251
#
257252
# MDEV-20549 SQL SECURITY DEFINER does not work for INFORMATION_SCHEMA tables
258253
#
259254
create user foo@localhost;
260255
grant select on test.* to foo@localhost;
256+
connect foo,localhost,foo;
257+
connection default;
261258
create procedure rootonly() select 1;
262-
create sql security definer view v1d as select current_user(),user from information_schema.processlist where command!='daemon';
263-
create sql security invoker view v1i as select current_user(),user from information_schema.processlist where command!='daemon';
259+
create sql security definer view v1d as select current_user(),user from information_schema.processlist where id in($default_id, $foo_id) order by user;
260+
create sql security invoker view v1i as select current_user(),user from information_schema.processlist where id in($default_id, $foo_id) order by user;
264261
create sql security definer view v2d as select table_name from information_schema.tables where table_schema='mysql' and table_name like '%user%';
265262
create sql security invoker view v2i as select table_name from information_schema.tables where table_schema='mysql' and table_name like '%user%';
266263
create sql security definer view v3d as select schema_name from information_schema.schemata where schema_name like '%mysql%';
@@ -269,7 +266,7 @@ create sql security definer view v4d as select routine_name from information_sch
269266
create sql security invoker view v4i as select routine_name from information_schema.routines where routine_schema='test';
270267
create sql security definer view v5d as select view_definition > '' from information_schema.views where table_name='v1d';
271268
create sql security invoker view v5i as select view_definition > '' from information_schema.views where table_name='v1d';
272-
connect foo,localhost,foo;
269+
connection foo;
273270
select * from v1d;
274271
current_user() user
275272
root@localhost root

mysql-test/main/information_schema_db.test

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,8 @@ connection default;
207207
use test;
208208
drop view testdb_1.v1, v2, testdb_1.v3, v4;
209209
drop database testdb_1;
210-
connection testdb_1;
211210
disconnect testdb_1;
212-
--source include/wait_until_disconnected.inc
213-
connection testdb_2;
214211
disconnect testdb_2;
215-
--source include/wait_until_disconnected.inc
216-
connection default;
217212
drop user testdb_1@localhost;
218213
drop user testdb_2@localhost;
219214

@@ -244,10 +239,7 @@ show create view testdb_1.v1;
244239
connection default;
245240
drop user mysqltest_1@localhost;
246241
drop database testdb_1;
247-
connection user1;
248242
disconnect user1;
249-
--source include/wait_until_disconnected.inc
250-
connection default;
251243

252244
set global sql_mode=default;
253245

@@ -257,9 +249,13 @@ set global sql_mode=default;
257249

258250
create user foo@localhost;
259251
grant select on test.* to foo@localhost;
252+
let $default_id= `select connection_id()`;
253+
connect foo,localhost,foo;
254+
let $foo_id= `select connection_id()`;
255+
connection default;
260256
create procedure rootonly() select 1;
261-
create sql security definer view v1d as select current_user(),user from information_schema.processlist where command!='daemon';
262-
create sql security invoker view v1i as select current_user(),user from information_schema.processlist where command!='daemon';
257+
evalp create sql security definer view v1d as select current_user(),user from information_schema.processlist where id in($default_id, $foo_id) order by user;
258+
evalp create sql security invoker view v1i as select current_user(),user from information_schema.processlist where id in($default_id, $foo_id) order by user;
263259
create sql security definer view v2d as select table_name from information_schema.tables where table_schema='mysql' and table_name like '%user%';
264260
create sql security invoker view v2i as select table_name from information_schema.tables where table_schema='mysql' and table_name like '%user%';
265261
create sql security definer view v3d as select schema_name from information_schema.schemata where schema_name like '%mysql%';
@@ -268,7 +264,7 @@ create sql security definer view v4d as select routine_name from information_sch
268264
create sql security invoker view v4i as select routine_name from information_schema.routines where routine_schema='test';
269265
create sql security definer view v5d as select view_definition > '' from information_schema.views where table_name='v1d';
270266
create sql security invoker view v5i as select view_definition > '' from information_schema.views where table_name='v1d';
271-
connect foo,localhost,foo;
267+
connection foo;
272268
select * from v1d;
273269
select * from v1i;
274270
select * from v2d;

mysql-test/main/limit_rows_examined.result

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -932,3 +932,14 @@ Warnings:
932932
Warning 1931 Query execution was interrupted. The query exceeded LIMIT ROWS EXAMINED 100. The query result may be incomplete
933933
DROP TABLE t1, t2;
934934
# End of 10.5 tests
935+
#
936+
# MDEV-22241: Assertion `0' failed in Protocol::end_statement after query with LIMIT ROWS EXAMINED
937+
#
938+
CREATE TABLE t1 (a int);
939+
INSERT INTO t1 VALUES (1);
940+
SELECT 1 FROM t1
941+
WHERE (1 IN (SELECT 8 UNION SELECT 5)) OR t1.a = 2
942+
LIMIT ROWS EXAMINED 1;
943+
1
944+
DROP TABLE t1;
945+
# End of 10.11 tests

mysql-test/main/limit_rows_examined.test

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,3 +658,18 @@ SELECT COUNT(*) FROM t1 JOIN t2 ON (b = a) UNION DISTINCT SELECT COUNT(*) FROM t
658658
DROP TABLE t1, t2;
659659

660660
--echo # End of 10.5 tests
661+
662+
--echo #
663+
--echo # MDEV-22241: Assertion `0' failed in Protocol::end_statement after query with LIMIT ROWS EXAMINED
664+
--echo #
665+
666+
CREATE TABLE t1 (a int);
667+
INSERT INTO t1 VALUES (1);
668+
669+
SELECT 1 FROM t1
670+
WHERE (1 IN (SELECT 8 UNION SELECT 5)) OR t1.a = 2
671+
LIMIT ROWS EXAMINED 1;
672+
673+
DROP TABLE t1;
674+
675+
--echo # End of 10.11 tests

mysql-test/suite/encryption/r/recovery_memory.result

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
SET GLOBAL innodb_encrypt_tables=ON,innodb_encryption_threads=1;
2+
SET GLOBAL innodb_saved_page_number_debug=4,innodb_fil_make_page_dirty_debug=0;
13
CREATE TABLE t1(f1 text, index idx(f1(20))) ENGINE INNODB;
24
set global innodb_fast_shutdown=0;
35
# restart: --debug_dbug=+d,ib_log_checkpoint_avoid_hard --innodb_flush_sync=0
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[full_crc32]
2+
--innodb-checksum-algorithm=full_crc32
3+
[crc32]
4+
--innodb-checksum-algorithm=crc32

mysql-test/suite/encryption/t/recovery_memory.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
let $basedir=$MYSQLTEST_VARDIR/tmp/backup;
77
let MYSQLD_DATADIR=`select @@datadir`;
8+
# Encrypt the change buffer root page
9+
SET GLOBAL innodb_encrypt_tables=ON,innodb_encryption_threads=1;
10+
SET GLOBAL innodb_saved_page_number_debug=4,innodb_fil_make_page_dirty_debug=0;
811

912
CREATE TABLE t1(f1 text, index idx(f1(20))) ENGINE INNODB;
1013

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
galera_wan : MDEV-35940 Unallowed state transition: donor -> synced in galera_wan
1414
galera_vote_rejoin_ddl : MDEV-35940 Unallowed state transition: donor -> synced in galera_wan
15-
MW-329 : MDEV-35951 Complete freeze during MW-329 test
1615
galera_vote_rejoin_dml : MDEV-35964 Assertion `ist_seqno >= cc_seqno' failed in galera_vote_rejoin_dml
1716
galera_var_notify_cmd : MDEV-37257 WSREP: Notification command failed: 1 (Operation not permitted)
1817
galera_var_notify_ssl_ipv6 : MDEV-37257 WSREP: Notification command failed: 1 (Operation not permitted)

mysql-test/suite/galera/r/MW-329.result

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ END|
1414
connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
1515
connection node_1b;
1616
connection node_1;
17+
connect node_1c, 127.0.0.1, root, , test, $NODE_MYPORT_1;
18+
connection node_1c;
1719
connection node_1b;
1820
connection node_1;
1921
DROP PROCEDURE proc_insert;
2022
DROP TABLE t1;
2123
disconnect node_1b;
22-
CALL mtr.add_suppression("WSREP: .* conflict state after post commit ");
23-
set global innodb_status_output=Default;
24+
disconnect node_1c;

0 commit comments

Comments
 (0)