Skip to content

Commit 0d622be

Browse files
committed
Merge branch '5.5' into 10.0
2 parents 4c35dce + 577915d commit 0d622be

File tree

11 files changed

+70
-521
lines changed

11 files changed

+70
-521
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ ADD_CUSTOM_TARGET(INFO_BIN ALL
483483
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
484484
)
485485

486-
INSTALL_DOCUMENTATION(README CREDITS COPYING COPYING.LESSER EXCEPTIONS-CLIENT
487-
COMPONENT Readme)
486+
INSTALL_DOCUMENTATION(README CREDITS COPYING EXCEPTIONS-CLIENT COMPONENT Readme)
488487

489488
# MDEV-6526 these files are not installed anymore
490489
#INSTALL_DOCUMENTATION(${CMAKE_BINARY_DIR}/Docs/INFO_SRC

COPYING.LESSER

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

cmake/build_configurations/mysql_release.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ OPTION(ENABLED_LOCAL_INFILE "" ON)
9999
IF(RPM)
100100
SET(WITH_SSL system CACHE STRING "")
101101
SET(WITH_ZLIB system CACHE STRING "")
102+
SET(CHECKMODULE /usr/bin/checkmodule CACHE STRING "")
103+
SET(SEMODULE_PACKAGE /usr/bin/semodule_package CACHE STRING "")
102104
ELSEIF(DEB)
103105
SET(WITH_SSL system CACHE STRING "")
104106
SET(WITH_ZLIB system CACHE STRING "")

cmake/mysql_add_executable.cmake

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ FUNCTION (MYSQL_ADD_EXECUTABLE)
3838

3939
SET(sources ${ARG_DEFAULT_ARGS})
4040
ADD_VERSION_INFO(${target} EXECUTABLE sources)
41+
42+
IF(MSVC)
43+
# Add compatibility manifest, to fix GetVersionEx on Windows 8.1 and later
44+
IF (CMAKE_VERSION VERSION_GREATER 3.3)
45+
SET(sources ${sources} ${PROJECT_SOURCE_DIR}/cmake/win_compatibility.manifest)
46+
ENDIF()
47+
ENDIF()
48+
4149
ADD_EXECUTABLE(${target} ${ARG_WIN32} ${ARG_MACOSX_BUNDLE} ${ARG_EXCLUDE_FROM_ALL} ${sources})
4250
# tell CPack where to install
4351
IF(NOT ARG_EXCLUDE_FROM_ALL)

cmake/win_compatibility.manifest

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
4+
<application>
5+
<!-- Windows Vista and Windows Server 2008 -->
6+
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}"/>
7+
8+
<!-- Windows 7 and Windows Server 2008 R2 -->
9+
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
10+
11+
<!-- Windows 8 and Windows Server 2012 -->
12+
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
13+
14+
<!-- Windows 8.1 and Windows Server 2012 R2 -->
15+
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
16+
17+
<!-- Windows 10 -->
18+
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
19+
20+
</application>
21+
</compatibility>
22+
</asmv1:assembly>

mysql-test/r/subselect4.result

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,5 +2470,18 @@ select 1 from dual where null not in (select 1 from t2);
24702470
1
24712471
1
24722472
drop table t1,t2;
2473+
#
2474+
# MDEV-6486: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))'
2475+
# failed with SELECT SQ, TEXT field
2476+
#
2477+
CREATE TABLE t1 (a VARCHAR(8), KEY(a)) ENGINE=MyISAM;
2478+
INSERT INTO t1 VALUES ('foo'),( 'bar');
2479+
CREATE TABLE t2 (b VARCHAR(8), c TINYTEXT, KEY(b)) ENGINE=MyISAM;
2480+
INSERT INTO t2 VALUES ('baz','baz'),('qux', 'qux');
2481+
SELECT ( SELECT COUNT(*) FROM t1 WHERE a = c ) AS field, COUNT(DISTINCT c)
2482+
FROM t2 WHERE b <= 'quux' GROUP BY field;
2483+
field COUNT(DISTINCT c)
2484+
0 1
2485+
drop table t1,t2;
24732486
SET optimizer_switch= @@global.optimizer_switch;
24742487
set @@tmp_table_size= @@global.tmp_table_size;

mysql-test/t/subselect4.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,5 +2016,21 @@ select 1 from dual where null not in (select 1 from t1);
20162016
select 1 from dual where null not in (select 1 from t2);
20172017
drop table t1,t2;
20182018

2019+
2020+
--echo #
2021+
--echo # MDEV-6486: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))'
2022+
--echo # failed with SELECT SQ, TEXT field
2023+
--echo #
2024+
2025+
CREATE TABLE t1 (a VARCHAR(8), KEY(a)) ENGINE=MyISAM;
2026+
INSERT INTO t1 VALUES ('foo'),( 'bar');
2027+
2028+
CREATE TABLE t2 (b VARCHAR(8), c TINYTEXT, KEY(b)) ENGINE=MyISAM;
2029+
INSERT INTO t2 VALUES ('baz','baz'),('qux', 'qux');
2030+
2031+
SELECT ( SELECT COUNT(*) FROM t1 WHERE a = c ) AS field, COUNT(DISTINCT c)
2032+
FROM t2 WHERE b <= 'quux' GROUP BY field;
2033+
drop table t1,t2;
2034+
20192035
SET optimizer_switch= @@global.optimizer_switch;
20202036
set @@tmp_table_size= @@global.tmp_table_size;

sql/item.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4116,6 +4116,11 @@ class Item_copy :public Item
41164116
virtual double val_real() = 0;
41174117
virtual longlong val_int() = 0;
41184118
virtual int save_in_field(Field *field, bool no_conversions) = 0;
4119+
bool walk(Item_processor processor, bool walk_subquery, uchar *args)
4120+
{
4121+
return (item->walk(processor, walk_subquery, args)) ||
4122+
(this->*processor)(args);
4123+
}
41194124
};
41204125

41214126
/**

sql/share/errmsg-utf8.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4841,7 +4841,7 @@ WARN_DATA_TRUNCATED 01000
48414841
spa "Datos truncados para columna '%s' en la línea %lu"
48424842
ER_WARN_USING_OTHER_HANDLER
48434843
eng "Using storage engine %s for table '%s'"
4844-
ger "Für Tabelle '%s' wird Speicher-Engine %s benutzt"
4844+
ger "Speicher-Engine %s wird für Tabelle '%s' benutzt"
48454845
jpn "ストレージエンジン %s が表 '%s' に利用されています。"
48464846
por "Usando engine de armazenamento %s para tabela '%s'"
48474847
spa "Usando motor de almacenamiento %s para tabla '%s'"

sql/sql_prepare.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,7 @@ static int mysql_test_handler_read(Prepared_statement *stmt,
20102010
THD *thd= stmt->thd;
20112011
LEX *lex= stmt->lex;
20122012
SQL_HANDLER *ha_table;
2013-
DBUG_ENTER("mysql_test_select");
2013+
DBUG_ENTER("mysql_test_handler_read");
20142014

20152015
lex->select_lex.context.resolve_in_select_list= TRUE;
20162016

win/packaging/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ IF(MSVC_VERSION EQUAL 1600 OR MSVC_VERSION EQUAL 1700 )
5151
SET(WIX_MSVC_SUFFIX "VS2010")
5252
ELSEIF(MSVC_VERSION EQUAL 1800)
5353
SET(WIX_MSVC_SUFFIX "VS2013")
54-
ELSEIF (MSVC_VERSION EQUAL 1900)
54+
ELSE()
5555
SET(WIX_MSVC_SUFFIX "VS2015")
5656
ENDIF()
5757

0 commit comments

Comments
 (0)