Skip to content

Commit 6cbbd6b

Browse files
committed
Merge branch '10.2' into 10.3
2 parents a6987d9 + 8426165 commit 6cbbd6b

29 files changed

+178
-49
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_upgrade' command line client", &ds_version);
1176+
"the 'mysql' command line client", &ds_version);
11771177
dynstr_free(&ds_version);
11781178
return 1; /* Query failed */
11791179
}

debian/additions/innotop/innotop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl
1+
#!/usr/bin/perl
22

33
# vim: tw=160:nowrap:expandtab:tabstop=3:shiftwidth=3:softtabstop=3
44

debian/additions/mysqlreport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl -w
1+
#!/usr/bin/perl
22

33
# mysqlreport v4.0 Oct 23 2015
44
# http://hackmysql.com/mysqlreport

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_upgrade' command line client
148+
Version check failed. Got the following error when calling the 'mysql' 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_upgrade' command line client
416+
Version check failed. Got the following error when calling the 'mysql' command line client
417417
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
418418
FATAL ERROR: Upgrade failed
419419
#

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ a
349349
999.99
350350
DROP TABLE t1dec102;
351351
flush logs;
352+
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL);
353+
INSERT INTO t1 VALUES (NULL);
354+
INSERT INTO t1 VALUES (POINT(10,10));
355+
DROP TABLE t1;
356+
FLUSH LOGS;
352357
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
353358
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
354359
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
@@ -5358,3 +5363,92 @@ START TRANSACTION
53585363
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Write_rows: table id # flags: STMT_END_F
53595364

53605365
Error: Found Old DECIMAL (mysql-4.1 or earlier). Not enough metadata to display the value.
5366+
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
5367+
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
5368+
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
5369+
DELIMITER /*!*/;
5370+
# at #
5371+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Start: binlog v 4, server v #.##.## created 010909 4:46:40
5372+
# at #
5373+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Gtid list [0-1-323]
5374+
# at #
5375+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000002
5376+
# at #
5377+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Binlog checkpoint master-bin.000003
5378+
# at #
5379+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-324 ddl
5380+
/*!100101 SET @@session.skip_parallel_replication=0*//*!*/;
5381+
/*!100001 SET @@session.gtid_domain_id=0*//*!*/;
5382+
/*!100001 SET @@session.server_id=1*//*!*/;
5383+
/*!100001 SET @@session.gtid_seq_no=324*//*!*/;
5384+
# at #
5385+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
5386+
use `test`/*!*/;
5387+
SET TIMESTAMP=1000000000/*!*/;
5388+
SET @@session.pseudo_thread_id=#/*!*/;
5389+
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1, @@session.check_constraint_checks=1/*!*/;
5390+
SET @@session.sql_mode=1411383296/*!*/;
5391+
SET @@session.auto_increment_increment=1, @@session.auto_increment_offset=1/*!*/;
5392+
/*!\C latin1 *//*!*/;
5393+
SET @@session.character_set_client=X,@@session.collation_connection=X,@@session.collation_server=X/*!*/;
5394+
SET @@session.lc_time_names=0/*!*/;
5395+
SET @@session.collation_database=DEFAULT/*!*/;
5396+
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL)
5397+
/*!*/;
5398+
# at #
5399+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-325
5400+
/*!100001 SET @@session.gtid_seq_no=325*//*!*/;
5401+
START TRANSACTION
5402+
/*!*/;
5403+
# at #
5404+
# at #
5405+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Annotate_rows:
5406+
#Q> INSERT INTO t1 VALUES (NULL)
5407+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number #
5408+
# at #
5409+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Write_rows: table id # flags: STMT_END_F
5410+
### INSERT INTO `test`.`t1`
5411+
### SET
5412+
### @1=NULL /* GEOMETRY meta=4 nullable=1 is_null=1 */
5413+
# Number of rows: 1
5414+
# at #
5415+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
5416+
SET TIMESTAMP=1000000000/*!*/;
5417+
COMMIT
5418+
/*!*/;
5419+
# at #
5420+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-326
5421+
/*!100001 SET @@session.gtid_seq_no=326*//*!*/;
5422+
START TRANSACTION
5423+
/*!*/;
5424+
# at #
5425+
# at #
5426+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Annotate_rows:
5427+
#Q> INSERT INTO t1 VALUES (POINT(10,10))
5428+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number #
5429+
# at #
5430+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Write_rows: table id # flags: STMT_END_F
5431+
### INSERT INTO `test`.`t1`
5432+
### SET
5433+
### @1='\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00$@\x00\x00\x00\x00\x00\x00$@' /* GEOMETRY meta=4 nullable=1 is_null=0 */
5434+
# Number of rows: 1
5435+
# at #
5436+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
5437+
SET TIMESTAMP=1000000000/*!*/;
5438+
COMMIT
5439+
/*!*/;
5440+
# at #
5441+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-327 ddl
5442+
/*!100001 SET @@session.gtid_seq_no=327*//*!*/;
5443+
# at #
5444+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
5445+
SET TIMESTAMP=1000000000/*!*/;
5446+
DROP TABLE `t1` /* generated by server */
5447+
/*!*/;
5448+
# at #
5449+
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000004 pos: 4
5450+
DELIMITER ;
5451+
# End of log file
5452+
ROLLBACK /* added by mysqlbinlog */;
5453+
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
5454+
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,17 @@ SELECT * FROM t1dec102 ORDER BY a;
465465
DROP TABLE t1dec102;
466466

467467
flush logs;
468+
#
469+
# MDEV-22330: mysqlbinlog stops with an error Don't know how to handle column
470+
# type: 255 meta: 4 (0004)
471+
# Check support for GEOMETRY type with verbose mode.
472+
#
473+
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL);
474+
475+
INSERT INTO t1 VALUES (NULL);
476+
INSERT INTO t1 VALUES (POINT(10,10));
477+
DROP TABLE t1;
478+
FLUSH LOGS;
468479

469480
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
470481
--replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ /exec_time=[0-9]*/exec_time=#/ /end_log_pos [0-9]*/end_log_pos #/ /# at [0-9]*/# at #/ /thread_id=[0-9]*/thread_id=#/ /table id [0-9]*/table id #/ /mapped to number [0-9]*/mapped to number #/ /server v [^ ]*/server v #.##.##/ /(@[0-9]*=[0-9]*[.][0-9]{1,3})[0-9e+-]*[^ ]*(.*(FLOAT|DOUBLE).*[*].)/\1...\2/ /CRC32 0x[0-9a-f]*/CRC32 XXX/ /collation_server=[0-9]+/collation_server=X/ /character_set_client=[0-9]+/character_set_client=X/ /collation_connection=[0-9]+/collation_connection=X/
@@ -475,3 +486,6 @@ flush logs;
475486
--error 1
476487
--exec $MYSQL_BINLOG --base64-output=decode-rows -v -v $MYSQLD_DATADIR/master-bin.000002 2>&1
477488

489+
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
490+
--replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ /exec_time=[0-9]*/exec_time=#/ /end_log_pos [0-9]*/end_log_pos #/ /# at [0-9]*/# at #/ /thread_id=[0-9]*/thread_id=#/ /table id [0-9]*/table id #/ /mapped to number [0-9]*/mapped to number #/ /server v [^ ]*/server v #.##.##/ /(@[0-9]*=[0-9]*[.][0-9]{1,3})[0-9e+-]*[^ ]*(.*(FLOAT|DOUBLE).*[*].)/\1...\2/ /CRC32 0x[0-9a-f]*/CRC32 XXX/ /collation_server=[0-9]+/collation_server=X/ /character_set_client=[0-9]+/character_set_client=X/ /collation_connection=[0-9]+/collation_connection=X/
491+
--exec $MYSQL_BINLOG --base64-output=decode-rows -v -v $MYSQLD_DATADIR/master-bin.000003

mysql-test/suite/galera_3nodes/disabled.def

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
##############################################################################
1212

1313
galera_gtid_2_cluster : MDEV-23775 Galera test failure on galera_3nodes.galera_gtid_2_cluster
14+
galera_ipv6_mariabackup : MDEV-21770 galera_3nodes.galera_ipv6_mariabackup fails
15+
galera_ipv6_mariabackup_section : MDEV-21770 galera_3nodes.galera_ipv6_mariabackup fails
16+
galera_ipv6_mysqldump : MDEV-23576 galera_3nodes.galera_ipv6_mysqldump MTR failed: WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
17+
galera_ipv6_rsync : MDEV-23581 galera_3nodes.galera_ipv6_rsync MTR failed: WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
18+
galera_ipv6_rsync_section : MDEV-23580 galera_3nodes.galera_ipv6_rsync_section MTR failed: WSREP_SST: [ERROR] rsync daemon port '16008' has been taken
1419
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=(}
1520
galera_slave_options_do :MDEV-8798
1621
galera_slave_options_ignore : MDEV-8798

scripts/mytop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env perl -w
1+
#!/usr/bin/env perl
22
#
33
# $Id: mytop,v 1.91 2012/01/18 16:49:12 mgrennan Exp $
44

sql-common/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2003, 2016, Oracle and/or its affiliates.
2-
Copyright (c) 2009, 2017, MariaDB
2+
Copyright (c) 2009, 2020, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -3288,7 +3288,7 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user,
32883288
/* New protocol with 16 bytes to describe server characteristics */
32893289
mysql->server_language=end[2];
32903290
mysql->server_status=uint2korr(end+3);
3291-
mysql->server_capabilities|= uint2korr(end+5) << 16;
3291+
mysql->server_capabilities|= ((unsigned) uint2korr(end+5)) << 16;
32923292
pkt_scramble_len= end[7];
32933293
if (pkt_scramble_len < 0)
32943294
{

sql/item_geofunc.cc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* Copyright (c) 2003, 2016, Oracle and/or its affiliates.
2-
Copyright (c) 2011, 2016, MariaDB
2+
Copyright (c) 2011, 2020, MariaDB
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -447,16 +447,18 @@ String *Item_func_boundary::val_str(String *str_value)
447447
DBUG_ASSERT(fixed == 1);
448448
String arg_val;
449449
String *swkb= args[0]->val_str(&arg_val);
450+
451+
if ((null_value= args[0]->null_value))
452+
DBUG_RETURN(0);
453+
450454
Geometry_buffer buffer;
451-
Geometry *g;
452455
uint32 srid= 0;
453456
Transporter trn(&res_receiver);
454-
455-
if ((null_value=
456-
args[0]->null_value ||
457-
!(g= Geometry::construct(&buffer, swkb->ptr(), swkb->length()))))
457+
458+
Geometry *g= Geometry::construct(&buffer, swkb->ptr(), swkb->length());
459+
if (!g)
458460
DBUG_RETURN(0);
459-
461+
460462
if (g->store_shapes(&trn))
461463
goto mem_error;
462464

0 commit comments

Comments
 (0)