Skip to content

Commit d9d9c30

Browse files
committed
Merge 10.2 into 10.3
2 parents fde3d89 + 9d0ee2d commit d9d9c30

18 files changed

+159
-17
lines changed

client/mysql_upgrade.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ static int check_version_match(void)
11731173
extract_variable_from_show(&ds_version, version_str))
11741174
{
11751175
print_error("Version check failed. Got the following error when calling "
1176-
"the 'mysql' command line client", &ds_version);
1176+
"the 'mysql_upgrade' command line client", &ds_version);
11771177
dynstr_free(&ds_version);
11781178
return 1; /* Query failed */
11791179
}

mysql-test/main/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/main/ctype_utf8.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,18 @@ SELECT CONVERT(1, CHAR) IN ('100', 10, '101');
20512051
SELECT CONVERT(1, CHAR) IN ('100', 10, '1');
20522052
SELECT CONVERT(1, CHAR) IN ('100', '10', '1');
20532053

2054+
--echo #
2055+
--echo # MDEV-23535 SIGSEGV, SIGABRT and SIGILL in typeinfo for Item_func_set_collation (on optimized builds)
2056+
--echo #
2057+
2058+
SET NAMES utf8;
2059+
CREATE OR REPLACE TABLE t1(a DATETIME) ENGINE=MYISAM;
2060+
INSERT INTO t1 VALUES ('2019-03-10 02:55:05');
2061+
CREATE OR REPLACE TABLE t2(a VARCHAR(50) CHARACTER SET latin1) ENGINE=MYISAM;
2062+
INSERT INTO t2 VALUES ('2019-03-10 02:55:05');
2063+
SELECT * FROM t1 WHERE (SELECT 1,CONCAT(a) FROM t1) = (SELECT 1,CONCAT(a) FROM t2);
2064+
DROP TABLE t1, t2;
2065+
20542066

20552067
--echo #
20562068
--echo # End of 10.1 tests

mysql-test/main/mysql_upgrade.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ test
145145
Phase 7/7: Running 'FLUSH PRIVILEGES'
146146
OK
147147
DROP USER mysqltest1@'%';
148-
Version check failed. Got the following error when calling the 'mysql' command line client
148+
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
149149
ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES)
150150
FATAL ERROR: Upgrade failed
151151
Run mysql_upgrade with a non existing server socket
@@ -413,7 +413,7 @@ OK
413413
# Bug #21489398: MYSQL_UPGRADE: FATAL ERROR: UPGRADE FAILED - IMPROVE ERROR
414414
#
415415
Run mysql_upgrade with unauthorized access
416-
Version check failed. Got the following error when calling the 'mysql' command line client
416+
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
417417
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
418418
FATAL ERROR: Upgrade failed
419419
#

mysql-test/main/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/main/subselect_innodb.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,3 +611,19 @@ FROM t1
611611

612612
DROP TABLE t1,t2,t3,t4;
613613

614+
615+
--echo #
616+
--echo # MDEV-23535: SIGSEGV, SIGABRT and SIGILL in typeinfo for Item_func_set_collation (on optimized builds)
617+
--echo #
618+
619+
set @save_character_set_connection=@@character_set_connection;
620+
set character_set_connection='utf8';
621+
622+
CREATE TABLE t1(a DATETIME, b VARCHAR(50)) ENGINE=INNODB;
623+
INSERT INTO t1 VALUES ('2019-03-10 02:55:05', '2019-03-10 02:55:05');
624+
CREATE TABLE t2(a VARCHAR(50)) ENGINE=INNODB;
625+
INSERT INTO t2 VALUES ('2019-03-10 02:55:05');
626+
SELECT * FROM t1 WHERE (SELECT 1,CONCAT(a) FROM t1) = (SELECT 1,CONCAT(a) FROM t2);
627+
DROP TABLE t1,t2;
628+
629+
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;

0 commit comments

Comments
 (0)