Skip to content

Commit 1e08e08

Browse files
committed
Merge 10.3 into 10.4
2 parents 88e70f4 + 6a04228 commit 1e08e08

22 files changed

+222
-144
lines changed

mysql-test/main/invisible_field.result

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,3 +621,9 @@ a b
621621
1 3
622622
2 4
623623
drop table t1;
624+
#
625+
# MDEV-23467 SIGSEGV in fill_record/fill_record_n_invoke_before_triggers on INSERT DELAYED
626+
#
627+
create table t1 (a int, b int invisible);
628+
insert delayed into t1 values (1);
629+
drop table t1;

mysql-test/main/invisible_field.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,11 @@ select a,b from t1;
271271

272272
#cleanup
273273
drop table t1;
274+
275+
--echo #
276+
--echo # MDEV-23467 SIGSEGV in fill_record/fill_record_n_invoke_before_triggers on INSERT DELAYED
277+
--echo #
278+
create table t1 (a int, b int invisible);
279+
insert delayed into t1 values (1);
280+
# cleanup
281+
drop table t1;

mysql-test/main/subselect4.result

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2686,6 +2686,37 @@ SELECT * FROM t2;
26862686
f
26872687
bar
26882688
DROP TABLE t1, t2;
2689+
#
2690+
# MDEV-18335: Assertion `!error || error == 137' failed in subselect_rowid_merge_engine::init
2691+
#
2692+
CREATE TABLE t1 (i1 int,v1 varchar(1),KEY (v1,i1));
2693+
INSERT INTO t1 VALUES
2694+
(9,'y'),(4,'q'),(0,null),(0,'p'),(null,'j');
2695+
CREATE TABLE t2 (pk int);
2696+
INSERT INTO t2 VALUES (1),(2);
2697+
CREATE TABLE t3 (v2 varchar(1));
2698+
INSERT INTO t3 VALUES
2699+
('p'),('j'),('y'),('q');
2700+
CREATE TABLE t4 (v2 varchar(1));
2701+
INSERT INTO t4 VALUES
2702+
('a'),('a'),('b'),('b'),('c'),('c'),
2703+
('d'),('d'),('e'),('e'),('f'),('f'),
2704+
('g'),('g'),('h'),('h'),('i'),('i'),
2705+
('j'),('j'),('k'),('k'),('l'),('l'),
2706+
('m'),('m'),('n'),('n'),('o'),('o'),
2707+
('p'),('p'),('q'),('q'),('r'),('r'),
2708+
('s'),('s'),('t'),('t'),('u'),('u'),('v'),('v'),
2709+
('w'),('w'),('x'),('x'), (NULL),(NULL);
2710+
SET @save_join_cache_level=@@join_cache_level;
2711+
SET join_cache_level=0;
2712+
select 1
2713+
from t2 join t1 on
2714+
('i','w') not in (select t1.v1,t4.v2 from t4,t1,t3 where t3.v2 = t1.v1) LIMIT ROWS EXAMINED 500;
2715+
1
2716+
Warnings:
2717+
Warning 1931 Query execution was interrupted. The query examined at least 3020 rows, which exceeds LIMIT ROWS EXAMINED (500). The query result may be incomplete
2718+
SET join_cache_level= @save_join_cache_level;
2719+
DROP TABLE t1,t2,t3,t4;
26892720
# End of 10.2 tests
26902721
#
26912722
# MDEV-19134: EXISTS() slower if ORDER BY is defined

mysql-test/main/subselect4.test

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2201,6 +2201,42 @@ SELECT * FROM t2;
22012201

22022202
DROP TABLE t1, t2;
22032203

2204+
--echo #
2205+
--echo # MDEV-18335: Assertion `!error || error == 137' failed in subselect_rowid_merge_engine::init
2206+
--echo #
2207+
2208+
CREATE TABLE t1 (i1 int,v1 varchar(1),KEY (v1,i1));
2209+
INSERT INTO t1 VALUES
2210+
(9,'y'),(4,'q'),(0,null),(0,'p'),(null,'j');
2211+
2212+
CREATE TABLE t2 (pk int);
2213+
INSERT INTO t2 VALUES (1),(2);
2214+
2215+
CREATE TABLE t3 (v2 varchar(1));
2216+
INSERT INTO t3 VALUES
2217+
('p'),('j'),('y'),('q');
2218+
2219+
CREATE TABLE t4 (v2 varchar(1));
2220+
INSERT INTO t4 VALUES
2221+
('a'),('a'),('b'),('b'),('c'),('c'),
2222+
('d'),('d'),('e'),('e'),('f'),('f'),
2223+
('g'),('g'),('h'),('h'),('i'),('i'),
2224+
('j'),('j'),('k'),('k'),('l'),('l'),
2225+
('m'),('m'),('n'),('n'),('o'),('o'),
2226+
('p'),('p'),('q'),('q'),('r'),('r'),
2227+
('s'),('s'),('t'),('t'),('u'),('u'),('v'),('v'),
2228+
('w'),('w'),('x'),('x'), (NULL),(NULL);
2229+
2230+
SET @save_join_cache_level=@@join_cache_level;
2231+
SET join_cache_level=0;
2232+
2233+
select 1
2234+
from t2 join t1 on
2235+
('i','w') not in (select t1.v1,t4.v2 from t4,t1,t3 where t3.v2 = t1.v1) LIMIT ROWS EXAMINED 500;
2236+
SET join_cache_level= @save_join_cache_level;
2237+
2238+
DROP TABLE t1,t2,t3,t4;
2239+
22042240
--echo # End of 10.2 tests
22052241

22062242
--echo #

mysql-test/suite/galera/t/mdev-22543.test

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
--source include/galera_cluster.inc
66
--source include/have_debug.inc
77
--source include/have_debug_sync.inc
8-
8+
99
--let $node_1 = node_1
1010
--let $node_2 = node_2
1111
--source include/auto_increment_offset_save.inc
12-
12+
1313
--let $galera_connection_name = node_1_ctrl
1414
--let $galera_server_number = 1
1515
--source include/galera_connect.inc
16-
16+
1717
#
1818
# Run UPDATE on node_1 and make it block before table locks are taken.
1919
# This should block FTWRL.
@@ -23,10 +23,10 @@ CREATE TABLE t1 (f1 INT PRIMARY KEY, f2 INT);
2323
INSERT INTO t1 VALUES (1, 1);
2424
SET DEBUG_SYNC = "before_lock_tables_takes_lock SIGNAL sync_point_reached WAIT_FOR sync_point_continue";
2525
--send UPDATE t1 SET f2 = 2 WHERE f1 = 1
26-
26+
2727
--connection node_1_ctrl
2828
SET DEBUG_SYNC = "now WAIT_FOR sync_point_reached";
29-
29+
3030
#
3131
# Restart node_2, force SST.
3232
#
@@ -40,19 +40,19 @@ SET DEBUG_SYNC = "now WAIT_FOR sync_point_reached";
4040
# If the bug is present, FTWRL times out on node_1 in couple of
4141
# seconds and node_2 fails to join.
4242
--sleep 10
43-
43+
4444
--connection node_1_ctrl
4545
SET DEBUG_SYNC = "now SIGNAL sync_point_continue";
46-
46+
4747
--connection node_1
4848
--reap
4949
SET DEBUG_SYNC = "RESET";
50-
50+
5151
--connection node_2
5252
--enable_reconnect
5353
--source include/wait_until_connected_again.inc
54-
54+
5555
--connection node_1
5656
DROP TABLE t1;
57-
57+
5858
--source include/auto_increment_offset_restore.inc
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,21 @@
1+
##############################################################################
2+
#
3+
# List the test cases that are to be disabled temporarily.
4+
#
5+
# Separate the test case name and the comment with ':'.
6+
#
7+
# <testcasename> : MDEV-<xxxx> <comment>
8+
#
9+
# Do not use any TAB characters for whitespace.
10+
#
11+
##############################################################################
12+
13+
galera_ipv6_mariabackup : MDEV-23573 Could not open '../galera/include/have_mariabackup.inc'
14+
galera_ipv6_mariabackup_section : MDEV-23574 Could not open '../galera/include/have_mariabackup.inc'
15+
galera_ipv6_mysqldump : MDEV-23576 WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
16+
galera_ipv6_rsyn : MDEV-23581 WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
17+
galera_ipv6_rsync_section : MDEV-23580 WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
18+
galera_ipv6_xtrabackup-v2 : MDEV-23575 WSREP_SST: [ERROR] innobackupex not in path
19+
galera_ist_gcache_rollover : MDEV-23578 WSREP: exception caused by message: {v=0,t=1,ut=255,o=4,s=0,sr=0,as=1,f=6,src=50524cfe,srcvid=view_id(REG,50524cfe,4),insvid=view_id(UNKNOWN,00000000,0),ru=00000000,r=[-1,-1],fs=75,nl=(}
120
galera_slave_options_do :MDEV-8798
221
galera_slave_options_ignore : MDEV-8798

mysql-test/suite/innodb/r/foreign_key.result

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ PRIMARY KEY (store_id),
168168
UNIQUE KEY idx_unique_manager (manager_staff_id),
169169
CONSTRAINT fk_store_staff FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id) ON DELETE RESTRICT ON UPDATE CASCADE
170170
) ENGINE=InnoDB;
171-
SET FOREIGN_KEY_CHECKS=DEFAULT;
172171
LOCK TABLE staff WRITE;
173172
UNLOCK TABLES;
174173
DROP TABLES staff, store;

mysql-test/suite/innodb/t/foreign_key.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ CREATE TABLE store (
136136
UNIQUE KEY idx_unique_manager (manager_staff_id),
137137
CONSTRAINT fk_store_staff FOREIGN KEY (manager_staff_id) REFERENCES staff (staff_id) ON DELETE RESTRICT ON UPDATE CASCADE
138138
) ENGINE=InnoDB;
139-
SET FOREIGN_KEY_CHECKS=DEFAULT;
140139

141140
LOCK TABLE staff WRITE;
142141
UNLOCK TABLES;

mysql-test/suite/sys_vars/r/foreign_key_checks_basic.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SET @@session.foreign_key_checks = 1;
77
SET @@session.foreign_key_checks = DEFAULT;
88
SELECT @@session.foreign_key_checks;
99
@@session.foreign_key_checks
10-
0
10+
1
1111
'#---------------------FN_DYNVARS_032_02-------------------------#'
1212
SET foreign_key_checks = 1;
1313
SELECT @@foreign_key_checks;

mysql-test/suite/sys_vars/r/unique_checks_basic.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SET @@session.unique_checks= 1;
77
SET @@session.unique_checks= DEFAULT;
88
SELECT @@session.unique_checks;
99
@@session.unique_checks
10-
0
10+
1
1111
'#--------------------FN_DYNVARS_005_04-------------------------#'
1212
SET @@session.unique_checks =1;
1313
SELECT @@session.unique_checks;

0 commit comments

Comments
 (0)