Skip to content

Commit 9d0ee2d

Browse files
committed
Merge 10.1 into 10.2
2 parents 78efa10 + 4c19227 commit 9d0ee2d

19 files changed

+160
-17
lines changed

client/mysql_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ static int check_version_match(void)
11661166
extract_variable_from_show(&ds_version, version_str))
11671167
{
11681168
print_error("Version check failed. Got the following error when calling "
1169-
"the 'mysql' command line client", &ds_version);
1169+
"the 'mysql_upgrade' command line client", &ds_version);
11701170
dynstr_free(&ds_version);
11711171
return 1; /* Query failed */
11721172
}

mysql-test/r/ctype_utf8.result

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10532,6 +10532,18 @@ SELECT CONVERT(1, CHAR) IN ('100', '10', '1');
1053210532
CONVERT(1, CHAR) IN ('100', '10', '1')
1053310533
1
1053410534
#
10535+
# MDEV-23535 SIGSEGV, SIGABRT and SIGILL in typeinfo for Item_func_set_collation (on optimized builds)
10536+
#
10537+
SET NAMES utf8;
10538+
CREATE OR REPLACE TABLE t1(a DATETIME) ENGINE=MYISAM;
10539+
INSERT INTO t1 VALUES ('2019-03-10 02:55:05');
10540+
CREATE OR REPLACE TABLE t2(a VARCHAR(50) CHARACTER SET latin1) ENGINE=MYISAM;
10541+
INSERT INTO t2 VALUES ('2019-03-10 02:55:05');
10542+
SELECT * FROM t1 WHERE (SELECT 1,CONCAT(a) FROM t1) = (SELECT 1,CONCAT(a) FROM t2);
10543+
a
10544+
2019-03-10 02:55:05
10545+
DROP TABLE t1, t2;
10546+
#
1053510547
# End of 10.1 tests
1053610548
#
1053710549
#

mysql-test/r/mysql_upgrade.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ test
142142
Phase 7/7: Running 'FLUSH PRIVILEGES'
143143
OK
144144
DROP USER mysqltest1@'%';
145-
Version check failed. Got the following error when calling the 'mysql' command line client
145+
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
146146
ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES)
147147
FATAL ERROR: Upgrade failed
148148
Run mysql_upgrade with a non existing server socket
@@ -405,7 +405,7 @@ OK
405405
# Bug #21489398: MYSQL_UPGRADE: FATAL ERROR: UPGRADE FAILED - IMPROVE ERROR
406406
#
407407
Run mysql_upgrade with unauthorized access
408-
Version check failed. Got the following error when calling the 'mysql' command line client
408+
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
409409
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
410410
FATAL ERROR: Upgrade failed
411411
#

mysql-test/r/subselect_innodb.result

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,3 +615,17 @@ id select_type table type possible_keys key key_len ref rows filtered Extra
615615
Warnings:
616616
Note 1003 select `test`.`t1`.`f1` AS `f1`,`test`.`t2`.`f2` AS `f2`,`test`.`t3`.`f3` AS `f3` from `test`.`t1` join `test`.`t2` semi join (`test`.`t4`) join `test`.`t3` where `test`.`t4`.`f4` = 1 and `test`.`t1`.`f1` >= `test`.`t2`.`f2`
617617
DROP TABLE t1,t2,t3,t4;
618+
#
619+
# MDEV-23535: SIGSEGV, SIGABRT and SIGILL in typeinfo for Item_func_set_collation (on optimized builds)
620+
#
621+
set @save_character_set_connection=@@character_set_connection;
622+
set character_set_connection='utf8';
623+
CREATE TABLE t1(a DATETIME, b VARCHAR(50)) ENGINE=INNODB;
624+
INSERT INTO t1 VALUES ('2019-03-10 02:55:05', '2019-03-10 02:55:05');
625+
CREATE TABLE t2(a VARCHAR(50)) ENGINE=INNODB;
626+
INSERT INTO t2 VALUES ('2019-03-10 02:55:05');
627+
SELECT * FROM t1 WHERE (SELECT 1,CONCAT(a) FROM t1) = (SELECT 1,CONCAT(a) FROM t2);
628+
a b
629+
2019-03-10 02:55:05 2019-03-10 02:55:05
630+
DROP TABLE t1,t2;
631+
set character_set_connection=@save_character_set_connection;

mysql-test/suite/binlog/r/binlog_show_binlog_event_random_pos.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ INSERT INTO t1 VALUES (repeat('a', 255), repeat('a', 255),repeat('a', 255),repea
99
INSERT INTO t1 VALUES (repeat('a', 255), repeat('a', 255),repeat('a', 255),repeat('a', 255),repeat('a', 255));
1010
UPDATE t1 SET c1=repeat('b',255);
1111
INSERT INTO t1 VALUES (repeat('a', 255), repeat('a', 255),repeat('a', 255),repeat('a', 255),repeat('a', 255));
12+
SHOW BINLOG EVENTS FROM POS;
13+
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Invalid pos specified. Requested from pos:POS is greater than actual file size:MAX_POS
14+
1215
DROP TABLE t1;

mysql-test/suite/binlog/t/binlog_show_binlog_event_random_pos.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,9 @@ while ($pos <= $max_pos)
3434
--enable_query_log
3535
}
3636

37+
# Testing a case where input position is greater than actual binlog file size.
38+
--replace_result $pos POS $max_pos MAX_POS
39+
--error 1220
40+
eval SHOW BINLOG EVENTS FROM $pos;
41+
3742
DROP TABLE t1;

mysql-test/suite/rpl/r/rpl_binlog_index.result

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,30 @@ CREATE TABLE t1 (a INT);
77
FLUSH BINARY LOGS;
88
INSERT INTO t1 VALUES (1);
99
connection slave;
10+
include/stop_slave.inc
1011
connection master;
1112
# Shutdown master
1213
include/rpl_stop_server.inc [server_number=1]
1314
# Move the master binlog files and the index file to a new place
1415
# Restart master with log-bin option set to the new path
1516
# Master has restarted successfully
17+
connection slave;
18+
include/start_slave.inc
19+
connection master;
1620
# Create the master-bin.index file with the old format
21+
connection slave;
22+
include/stop_slave.inc
23+
connection master;
1724
# Shutdown master
1825
include/rpl_stop_server.inc [server_number=1]
1926
# Move back the master binlog files
2027
# Remove the unneeded master-bin.index file
2128
# Restart master with log-bin option set to default
2229
# Master has restarted successfully
2330
connection slave;
31+
include/start_slave.inc
32+
connection master;
33+
connection slave;
2434
# stop slave
2535
include/stop_slave.inc
2636
include/rpl_stop_server.inc [server_number=2]

mysql-test/suite/rpl/r/rpl_gtid_crash.result

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ ALTER TABLE mysql.gtid_slave_pos ENGINE=InnoDB;
99
CREATE TABLE t1 (a INT PRIMARY KEY, b INT) ENGINE=InnoDB;
1010
INSERT INTO t1 VALUES (1, 0);
1111
connection server_2;
12+
SET sql_log_bin=0;
13+
call mtr.add_suppression('Master command COM_REGISTER_SLAVE failed: failed registering on master, reconnecting to try again');
14+
SET sql_log_bin=1;
1215
include/stop_slave.inc
1316
CHANGE MASTER TO master_host = '127.0.0.1', master_port = MASTER_PORT,
1417
MASTER_USE_GTID=CURRENT_POS;

mysql-test/suite/rpl/t/rpl_binlog_index.test

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ FLUSH BINARY LOGS;
4343
INSERT INTO t1 VALUES (1);
4444

4545
sync_slave_with_master;
46-
46+
--source include/stop_slave.inc
4747
#
4848
# Test on master
4949
#
@@ -58,13 +58,15 @@ source include/rpl_stop_server.inc;
5858
--move_file $master_datadir/master-bin.index $tmpdir/master-bin.index
5959

6060
--echo # Restart master with log-bin option set to the new path
61-
--let $rpl_server_parameters=--log-bin=$tmpdir/master-bin
61+
--let $rpl_server_parameters=--log-bin=$tmpdir/master-bin --log-bin-index=$tmpdir/master-bin
6262
--let $keep_include_silent=1
6363
source include/rpl_start_server.inc;
6464
--let $keep_include_silent=0
6565

6666
--echo # Master has restarted successfully
67-
67+
--connection slave
68+
--source include/start_slave.inc
69+
--connection master
6870
#
6971
# Test master can handle old format with directory path in index file
7072
#
@@ -85,7 +87,10 @@ if (!$is_windows)
8587
--disable_query_log
8688
source include/write_var_to_file.inc;
8789
--enable_query_log
90+
--sync_slave_with_master
91+
--source include/stop_slave.inc
8892

93+
--connection master
8994
--echo # Shutdown master
9095
--let $rpl_server_number=1
9196
source include/rpl_stop_server.inc;
@@ -99,14 +104,17 @@ source include/rpl_stop_server.inc;
99104
--remove_file $tmpdir/master-bin.index
100105

101106
--echo # Restart master with log-bin option set to default
102-
--let $rpl_server_parameters=--log-bin=$master_datadir/master-bin
107+
--let $rpl_server_parameters=--log-bin=$master_datadir/master-bin --log-bin-index=$master_datadir/master-bin
103108
--let $keep_include_silent=1
104109
source include/rpl_start_server.inc;
105110
--let $keep_include_silent=0
106111

107112
--echo # Master has restarted successfully
113+
--connection slave
114+
--source include/start_slave.inc
108115

109-
connection slave;
116+
--connection master
117+
--sync_slave_with_master
110118
--echo # stop slave
111119
--source include/stop_slave.inc
112120
--let $rpl_server_number= 2

mysql-test/suite/rpl/t/rpl_gtid_crash.test

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ INSERT INTO t1 VALUES (1, 0);
2121

2222
--connection server_2
2323
--sync_with_master
24+
SET sql_log_bin=0;
25+
call mtr.add_suppression('Master command COM_REGISTER_SLAVE failed: failed registering on master, reconnecting to try again');
26+
SET sql_log_bin=1;
2427
--source include/stop_slave.inc
2528
--replace_result $MASTER_MYPORT MASTER_PORT
2629
eval CHANGE MASTER TO master_host = '127.0.0.1', master_port = $MASTER_MYPORT,

0 commit comments

Comments
 (0)