Skip to content

Commit 1130301

Browse files
committed
Merge tag 'mysql-5.5.52' into mysql-5.5-cluster-7.2
2 parents e475d10 + 754e7ef commit 1130301

File tree

31 files changed

+345
-401
lines changed

31 files changed

+345
-401
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
MYSQL_VERSION_MAJOR=5
22
MYSQL_VERSION_MINOR=5
3-
MYSQL_VERSION_PATCH=51
3+
MYSQL_VERSION_PATCH=52
44
MYSQL_VERSION_EXTRA=-ndb-7.2.26

client/mysqlbinlog.cc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
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
@@ -1475,6 +1475,12 @@ static int parse_args(int *argc, char*** argv)
14751475
*/
14761476
static Exit_status safe_connect()
14771477
{
1478+
/*
1479+
A possible old connection's resources are reclaimed now
1480+
at new connect attempt. The final safe_connect resources
1481+
are mysql_closed at the end of program, explicitly.
1482+
*/
1483+
mysql_close(mysql);
14781484
mysql= mysql_init(NULL);
14791485

14801486
if (!mysql)

include/m_ctype.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -33,11 +33,11 @@ extern "C" {
3333
#define MY_CS_TO_UPPER_TABLE_SIZE 256
3434
#define MY_CS_SORT_ORDER_TABLE_SIZE 256
3535
#define MY_CS_TO_UNI_TABLE_SIZE 256
36-
3736
#define CHARSET_DIR "charsets/"
3837

3938
#define my_wc_t ulong
4039

40+
#define MY_CS_MAX_CHAR 0xFFFF
4141
#define MY_CS_REPLACEMENT_CHARACTER 0xFFFD
4242

4343
/*

include/my_sys.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
1+
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
22
33
This program is free software; you can redistribute it and/or modify
44
it under the terms of the GNU General Public License as published by
@@ -83,6 +83,7 @@ typedef struct my_aio_result {
8383
#define MY_RESOLVE_LINK 128 /* my_realpath(); Only resolve links */
8484
#define MY_HOLD_ORIGINAL_MODES 128 /* my_copy() holds to file modes */
8585
#define MY_REDEL_MAKE_BACKUP 256
86+
#define MY_REDEL_NO_COPY_STAT 512 /* my_redel() doesn't call my_copystat() */
8687
#define MY_SEEK_NOT_DONE 32 /* my_lock may have to do a seek */
8788
#define MY_DONT_WAIT 64 /* my_lock() don't wait if can't lock */
8889
#define MY_ZEROFILL 32 /* my_malloc(), fill array with zero */

include/myisam.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
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
@@ -426,12 +426,13 @@ int chk_size(MI_CHECK *param, MI_INFO *info);
426426
int chk_key(MI_CHECK *param, MI_INFO *info);
427427
int chk_data_link(MI_CHECK *param, MI_INFO *info,int extend);
428428
int mi_repair(MI_CHECK *param, register MI_INFO *info,
429-
char * name, int rep_quick);
430-
int mi_sort_index(MI_CHECK *param, register MI_INFO *info, char * name);
429+
char * name, int rep_quick, my_bool no_copy_stat);
430+
int mi_sort_index(MI_CHECK *param, register MI_INFO *info, char * name,
431+
my_bool no_copy_stat);
431432
int mi_repair_by_sort(MI_CHECK *param, register MI_INFO *info,
432-
const char * name, int rep_quick);
433+
const char * name, int rep_quick, my_bool no_copy_stat);
433434
int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
434-
const char * name, int rep_quick);
435+
const char * name, int rep_quick, my_bool no_copy_stat);
435436
int change_to_newfile(const char * filename, const char * old_ext,
436437
const char * new_ext, myf myflags);
437438
int lock_file(MI_CHECK *param, File file, my_off_t start, int lock_type,

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

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ table_54044 CREATE TEMPORARY TABLE `table_54044` (
66
`IF(NULL IS NOT NULL, NULL, NULL)` binary(0) DEFAULT NULL
77
) ENGINE=InnoDB DEFAULT CHARSET=latin1
88
DROP TABLE table_54044;
9-
CREATE TABLE tmp ENGINE = INNODB AS SELECT COALESCE(NULL, NULL, NULL);
10-
ERROR HY000: Can't create table 'test.tmp' (errno: -1)
11-
CREATE TABLE tmp ENGINE = INNODB AS SELECT GREATEST(NULL, NULL);
12-
ERROR HY000: Can't create table 'test.tmp' (errno: -1)
9+
CREATE TABLE tmp ENGINE = INNODB
10+
AS SELECT COALESCE(NULL, NULL, NULL), GREATEST(NULL, NULL), NULL;
11+
SHOW CREATE TABLE tmp;
12+
Table Create Table
13+
tmp CREATE TABLE `tmp` (
14+
`COALESCE(NULL, NULL, NULL)` binary(0) DEFAULT NULL,
15+
`GREATEST(NULL, NULL)` binary(0) DEFAULT NULL,
16+
`NULL` binary(0) DEFAULT NULL
17+
) ENGINE=InnoDB DEFAULT CHARSET=latin1
18+
DROP TABLE tmp;

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ CREATE TEMPORARY TABLE table_54044 ENGINE = INNODB
1010
SHOW CREATE TABLE table_54044;
1111
DROP TABLE table_54044;
1212

13-
# These 'create table' operations should fail because of
14-
# using NULL datatype
13+
# This 'create table' should pass since it uses a Field_string of size 0.
1514

16-
--error ER_CANT_CREATE_TABLE
17-
CREATE TABLE tmp ENGINE = INNODB AS SELECT COALESCE(NULL, NULL, NULL);
18-
--error ER_CANT_CREATE_TABLE
19-
CREATE TABLE tmp ENGINE = INNODB AS SELECT GREATEST(NULL, NULL);
15+
CREATE TABLE tmp ENGINE = INNODB
16+
AS SELECT COALESCE(NULL, NULL, NULL), GREATEST(NULL, NULL), NULL;
17+
SHOW CREATE TABLE tmp;
18+
DROP TABLE tmp;

mysql-test/suite/perfschema/r/aggregate.result

Lines changed: 0 additions & 102 deletions
This file was deleted.

mysql-test/suite/perfschema/t/aggregate.test

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)