Skip to content

Commit 36f67a7

Browse files
committed
Merge branch '10.1' into 10.2
2 parents cd1c108 + c8ba982 commit 36f67a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+356
-229
lines changed

dbug/dbug.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,8 @@ typedef struct _db_code_state_ {
226226
const char *file; /* Name of current user file */
227227
struct _db_stack_frame_ *framep; /* Pointer to current frame */
228228
struct settings *stack; /* debugging settings */
229-
const char *jmpfunc; /* Remember current function for setjmp */
230-
const char *jmpfile; /* Remember current file for setjmp */
231229
int lineno; /* Current debugger output line number */
232230
uint level; /* Current function nesting level */
233-
int jmplevel; /* Remember nesting level at setjmp() */
234231

235232
/*
236233
* The following variables are used to hold the state information

debian/additions/my.cnf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ max_binlog_size = 100M
131131
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
132132
# Read the manual for more InnoDB related options. There are many!
133133
default_storage_engine = InnoDB
134-
# you can't just change log file size, requires special procedure
135-
#innodb_log_file_size = 50M
136134
innodb_buffer_pool_size = 256M
137135
innodb_log_buffer_size = 8M
138136
innodb_file_per_table = 1

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ Variable_name Value
567567
auto_increment_increment 65535
568568
auto_increment_offset 65535
569569
INSERT INTO t1 VALUES (NULL),(NULL);
570-
ERROR HY000: Failed to read auto-increment value from storage engine
570+
ERROR 22003: Out of range value for column 'c1' at row 1
571571
SELECT * FROM t1;
572572
c1
573573
1
@@ -677,7 +677,7 @@ SELECT a,b FROM t;
677677
a b
678678
1 S1
679679
3 S2
680-
4 S2
680+
5 S2
681681
disconnect con1;
682682
connection default;
683683
# Client 1: Insert a record with auto_increment_increment=1
@@ -688,14 +688,14 @@ t CREATE TABLE `t` (
688688
`a` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
689689
`b` varchar(200) DEFAULT NULL,
690690
PRIMARY KEY (`a`)
691-
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1
691+
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1
692692
INSERT INTO t(b) VALUES('S1');
693693
SELECT a,b FROM t;
694694
a b
695695
1 S1
696696
3 S2
697-
4 S2
698-
5 S1
697+
5 S2
698+
6 S1
699699
DROP TABLE t;
700700
# Autoincrement behaviour with mixed insert.
701701
CREATE TABLE t(
@@ -733,22 +733,22 @@ t CREATE TABLE `t` (
733733
`a` tinyint(4) NOT NULL AUTO_INCREMENT,
734734
`b` varchar(200) DEFAULT NULL,
735735
PRIMARY KEY (`a`)
736-
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=latin1
736+
) ENGINE=InnoDB AUTO_INCREMENT=32 DEFAULT CHARSET=latin1
737737
INSERT INTO t(b) VALUES('S4');
738738
SELECT * FROM t;
739739
a b
740740
1 S0
741741
11 S1
742-
22 S3
743-
23 S4
744742
28 S2
743+
31 S3
744+
32 S4
745745
SHOW CREATE TABLE t;
746746
Table Create Table
747747
t CREATE TABLE `t` (
748748
`a` tinyint(4) NOT NULL AUTO_INCREMENT,
749749
`b` varchar(200) DEFAULT NULL,
750750
PRIMARY KEY (`a`)
751-
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=latin1
751+
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=latin1
752752
DROP TABLE t;
753753
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1, @@SESSION.AUTO_INCREMENT_OFFSET=5;
754754
DROP TABLE IF EXISTS t1;
@@ -789,7 +789,7 @@ t2 CREATE TABLE `t2` (
789789
`n` int(10) unsigned NOT NULL,
790790
`o` enum('FALSE','TRUE') DEFAULT NULL,
791791
PRIMARY KEY (`m`)
792-
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1
792+
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=latin1
793793
INSERT INTO t1 (b,c) SELECT n,o FROM t2 ;
794794
SHOW CREATE TABLE t1;
795795
Table Create Table
@@ -1472,13 +1472,13 @@ SELECT * FROM t;
14721472
i
14731473
1
14741474
301
1475-
351
1475+
601
14761476
SHOW CREATE TABLE t;
14771477
Table Create Table
14781478
t CREATE TABLE `t` (
14791479
`i` int(11) NOT NULL AUTO_INCREMENT,
14801480
KEY `i` (`i`)
1481-
) ENGINE=InnoDB AUTO_INCREMENT=401 DEFAULT CHARSET=latin1
1481+
) ENGINE=InnoDB AUTO_INCREMENT=651 DEFAULT CHARSET=latin1
14821482
DROP TABLE t;
14831483
SET auto_increment_increment = DEFAULT;
14841484
#

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ INSERT INTO t1 VALUES (18446744073709551610); #-- 2^64 - 2
349349
SELECT * FROM t1;
350350
SET @@SESSION.AUTO_INCREMENT_INCREMENT=1152921504606846976, @@SESSION.AUTO_INCREMENT_OFFSET=1152921504606846976;
351351
SHOW VARIABLES LIKE "auto_inc%";
352-
--error 1467
352+
--error HA_ERR_AUTOINC_ERANGE
353353
INSERT INTO t1 VALUES (NULL),(NULL);
354354
SELECT * FROM t1;
355355
DROP TABLE t1;

mysql-test/suite/sys_vars/r/sysvars_innodb,32bit,xtradb.rdiff-disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@
12151215
VARIABLE_NAME INNODB_VERSION
12161216
SESSION_VALUE NULL
12171217
-GLOBAL_VALUE 5.6.45
1218-
+GLOBAL_VALUE 5.6.44-86.0
1218+
+GLOBAL_VALUE 5.6.45-86.1
12191219
GLOBAL_VALUE_ORIGIN COMPILE-TIME
12201220
DEFAULT_VALUE NULL
12211221
VARIABLE_SCOPE GLOBAL

mysql-test/suite/sys_vars/r/sysvars_innodb,xtradb.rdiff-disabled

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
VARIABLE_NAME INNODB_VERSION
686686
SESSION_VALUE NULL
687687
-GLOBAL_VALUE 5.6.45
688-
+GLOBAL_VALUE 5.6.44-86.0
688+
+GLOBAL_VALUE 5.6.45-86.1
689689
GLOBAL_VALUE_ORIGIN COMPILE-TIME
690690
DEFAULT_VALUE NULL
691691
VARIABLE_SCOPE GLOBAL

sql/sql_show.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7861,8 +7861,7 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list)
78617861
item->maybe_null= (fields_info->field_flags & MY_I_S_MAYBE_NULL);
78627862
field_count++;
78637863
}
7864-
TMP_TABLE_PARAM *tmp_table_param =
7865-
(TMP_TABLE_PARAM*) (thd->alloc(sizeof(TMP_TABLE_PARAM)));
7864+
TMP_TABLE_PARAM *tmp_table_param = new (thd->mem_root) TMP_TABLE_PARAM;
78667865
tmp_table_param->init();
78677866
tmp_table_param->table_charset= cs;
78687867
tmp_table_param->field_count= field_count;

storage/connect/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ ELSE(NOT UNIX)
7373
tabwmi.cpp tabwmi.h tabmac.cpp tabmac.h macutil.cpp macutil.h)
7474
# Add exception handling to the CONNECT project)
7575
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
76+
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MD")
77+
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MDd")
78+
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /MD")
79+
SET(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} /MD")
7680
SET(IPHLPAPI_LIBRARY iphlpapi.lib)
7781
IF(MSVC AND (CMAKE_CXX_COMPILER_ID MATCHES Clang))
7882
# Connect does not work with clang-cl

storage/connect/inihandl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static void PROFILE_Save( FILE *file, PROFILESECTION *section )
194194
}
195195

196196
for (key = section->key; key; key = key->next)
197-
if (key->name[0]) {
197+
if (key->name && key->name[0]) {
198198
fprintf(file, "%s", SVP(key->name));
199199

200200
if (key->value)

storage/heap/ha_heap.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ int ha_heap::reset_auto_increment(ulonglong value)
431431

432432
int ha_heap::external_lock(THD *thd, int lock_type)
433433
{
434+
#ifndef DBUG_OFF
435+
if (lock_type == F_UNLCK && file->s->changed && heap_check_heap(file, 0))
436+
return HA_ERR_CRASHED;
437+
#endif
434438
return 0; // No external locking
435439
}
436440

0 commit comments

Comments
 (0)