mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -1166,7 +1166,7 @@ static int check_version_match(void)
|
|||||||
extract_variable_from_show(&ds_version, version_str))
|
extract_variable_from_show(&ds_version, version_str))
|
||||||
{
|
{
|
||||||
print_error("Version check failed. Got the following error when calling "
|
print_error("Version check failed. Got the following error when calling "
|
||||||
"the 'mysql_upgrade' command line client", &ds_version);
|
"the 'mysql' command line client", &ds_version);
|
||||||
dynstr_free(&ds_version);
|
dynstr_free(&ds_version);
|
||||||
return 1; /* Query failed */
|
return 1; /* Query failed */
|
||||||
}
|
}
|
||||||
|
2
debian/additions/innotop/innotop
vendored
2
debian/additions/innotop/innotop
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
# vim: tw=160:nowrap:expandtab:tabstop=3:shiftwidth=3:softtabstop=3
|
# vim: tw=160:nowrap:expandtab:tabstop=3:shiftwidth=3:softtabstop=3
|
||||||
|
|
||||||
|
2
debian/additions/mysqlreport
vendored
2
debian/additions/mysqlreport
vendored
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/perl
|
||||||
|
|
||||||
# mysqlreport v4.0 Oct 23 2015
|
# mysqlreport v4.0 Oct 23 2015
|
||||||
# http://hackmysql.com/mysqlreport
|
# http://hackmysql.com/mysqlreport
|
||||||
|
@ -142,7 +142,7 @@ test
|
|||||||
Phase 7/7: Running 'FLUSH PRIVILEGES'
|
Phase 7/7: Running 'FLUSH PRIVILEGES'
|
||||||
OK
|
OK
|
||||||
DROP USER mysqltest1@'%';
|
DROP USER mysqltest1@'%';
|
||||||
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
|
Version check failed. Got the following error when calling the 'mysql' command line client
|
||||||
ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES)
|
ERROR 1045 (28000): Access denied for user 'mysqltest1'@'localhost' (using password: YES)
|
||||||
FATAL ERROR: Upgrade failed
|
FATAL ERROR: Upgrade failed
|
||||||
Run mysql_upgrade with a non existing server socket
|
Run mysql_upgrade with a non existing server socket
|
||||||
@ -405,7 +405,7 @@ OK
|
|||||||
# Bug #21489398: MYSQL_UPGRADE: FATAL ERROR: UPGRADE FAILED - IMPROVE ERROR
|
# Bug #21489398: MYSQL_UPGRADE: FATAL ERROR: UPGRADE FAILED - IMPROVE ERROR
|
||||||
#
|
#
|
||||||
Run mysql_upgrade with unauthorized access
|
Run mysql_upgrade with unauthorized access
|
||||||
Version check failed. Got the following error when calling the 'mysql_upgrade' command line client
|
Version check failed. Got the following error when calling the 'mysql' command line client
|
||||||
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
|
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
|
||||||
FATAL ERROR: Upgrade failed
|
FATAL ERROR: Upgrade failed
|
||||||
#
|
#
|
||||||
|
@ -339,7 +339,11 @@ a
|
|||||||
123.47
|
123.47
|
||||||
999.99
|
999.99
|
||||||
DROP TABLE t1dec102;
|
DROP TABLE t1dec102;
|
||||||
flush logs;
|
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL);
|
||||||
|
INSERT INTO t1 VALUES (NULL);
|
||||||
|
INSERT INTO t1 VALUES (POINT(10,10));
|
||||||
|
DROP TABLE t1;
|
||||||
|
FLUSH LOGS;
|
||||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||||
@ -5161,6 +5165,62 @@ SET TIMESTAMP=1000000000/*!*/;
|
|||||||
DROP TABLE `t1dec102` /* generated by server */
|
DROP TABLE `t1dec102` /* generated by server */
|
||||||
/*!*/;
|
/*!*/;
|
||||||
# at #
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-321 ddl
|
||||||
|
/*!100001 SET @@session.gtid_seq_no=321*//*!*/;
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
|
||||||
|
SET TIMESTAMP=1000000000/*!*/;
|
||||||
|
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL)
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-322
|
||||||
|
/*!100001 SET @@session.gtid_seq_no=322*//*!*/;
|
||||||
|
BEGIN
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||||
|
#Q> INSERT INTO t1 VALUES (NULL)
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number #
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Write_rows: table id # flags: STMT_END_F
|
||||||
|
### INSERT INTO `test`.`t1`
|
||||||
|
### SET
|
||||||
|
### @1=NULL /* GEOMETRY meta=4 nullable=1 is_null=1 */
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
|
||||||
|
SET TIMESTAMP=1000000000/*!*/;
|
||||||
|
COMMIT
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-323
|
||||||
|
/*!100001 SET @@session.gtid_seq_no=323*//*!*/;
|
||||||
|
BEGIN
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Annotate_rows:
|
||||||
|
#Q> INSERT INTO t1 VALUES (POINT(10,10))
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Table_map: `test`.`t1` mapped to number #
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Write_rows: table id # flags: STMT_END_F
|
||||||
|
### INSERT INTO `test`.`t1`
|
||||||
|
### SET
|
||||||
|
### @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 */
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
|
||||||
|
SET TIMESTAMP=1000000000/*!*/;
|
||||||
|
COMMIT
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX GTID 0-1-324 ddl
|
||||||
|
/*!100001 SET @@session.gtid_seq_no=324*//*!*/;
|
||||||
|
# at #
|
||||||
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Query thread_id=# exec_time=# error_code=0
|
||||||
|
SET TIMESTAMP=1000000000/*!*/;
|
||||||
|
DROP TABLE `t1` /* generated by server */
|
||||||
|
/*!*/;
|
||||||
|
# at #
|
||||||
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000002 pos: 4
|
#010909 4:46:40 server id 1 end_log_pos # CRC32 XXX Rotate to master-bin.000002 pos: 4
|
||||||
DELIMITER ;
|
DELIMITER ;
|
||||||
# End of log file
|
# End of log file
|
||||||
|
@ -450,7 +450,19 @@ INSERT INTO t1dec102 VALUES (999.99);
|
|||||||
SELECT * FROM t1dec102 ORDER BY a;
|
SELECT * FROM t1dec102 ORDER BY a;
|
||||||
DROP TABLE t1dec102;
|
DROP TABLE t1dec102;
|
||||||
|
|
||||||
flush logs;
|
|
||||||
|
#
|
||||||
|
# MDEV-22330: mysqlbinlog stops with an error Don't know how to handle column
|
||||||
|
# type: 255 meta: 4 (0004)
|
||||||
|
# Check support for GEOMETRY type with verbose mode.
|
||||||
|
#
|
||||||
|
CREATE TABLE t1 (a GEOMETRY DEFAULT NULL);
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (NULL);
|
||||||
|
INSERT INTO t1 VALUES (POINT(10,10));
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
FLUSH LOGS;
|
||||||
|
|
||||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||||
--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/
|
--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/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
#
|
#
|
||||||
# $Id: mytop,v 1.91 2012/01/18 16:49:12 mgrennan Exp $
|
# $Id: mytop,v 1.91 2012/01/18 16:49:12 mgrennan Exp $
|
||||||
|
|
||||||
|
@ -2999,13 +2999,20 @@ log_event_print_value(IO_CACHE *file, const uchar *ptr,
|
|||||||
"Not enough metadata to display the value. ");
|
"Not enough metadata to display the value. ");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case MYSQL_TYPE_GEOMETRY:
|
||||||
|
strmake(typestr, "GEOMETRY", typestr_length);
|
||||||
|
if (!ptr)
|
||||||
|
goto return_null;
|
||||||
|
|
||||||
|
length= uint4korr(ptr);
|
||||||
|
my_b_write_quoted(file, ptr + meta, length);
|
||||||
|
return length + meta;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
char tmp[5];
|
fprintf(stderr,
|
||||||
my_snprintf(tmp, sizeof(tmp), "%04x", meta);
|
"\nError: Don't know how to handle column type: %d meta: %d (%04x)\n",
|
||||||
my_b_printf(file,
|
type, meta, meta);
|
||||||
"!! Don't know how to handle column type=%d meta=%d (%s)",
|
|
||||||
type, meta, tmp);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000 MySQL AB
|
# Copyright (C) 2000 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000, 2001 MySQL AB
|
# Copyright (C) 2000, 2001 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
# Copyright (c) 2001, 2006 MySQL AB
|
# Copyright (c) 2001, 2006 MySQL AB
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (c) 2002, 2003, 2005, 2006 MySQL AB
|
# Copyright (c) 2002, 2003, 2005, 2006 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2005 MySQL AB
|
# Copyright (C) 2005 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000, 2001 MySQL AB
|
# Copyright (C) 2000, 2001 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
# Copyright Abandoned 1998 TCX DataKonsult AB & Monty Program KB & Detron HB
|
# Copyright Abandoned 1998 TCX DataKonsult AB & Monty Program KB & Detron HB
|
||||||
# This file is public domain and comes with NO WARRANTY of any kind
|
# This file is public domain and comes with NO WARRANTY of any kind
|
||||||
#
|
#
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000, 2005 MySQL AB
|
# Copyright (C) 2000, 2005 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000, 2001 MySQL AB
|
# Copyright (C) 2000, 2001 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2000, 2001 MySQL AB
|
# Copyright (C) 2000, 2001 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env perl -w
|
#!/usr/bin/env perl
|
||||||
|
|
||||||
# Copyright (C) 2002 MySQL AB
|
# Copyright (C) 2002 MySQL AB
|
||||||
# Use is subject to license terms
|
# Use is subject to license terms
|
||||||
|
Reference in New Issue
Block a user