Skip to content

Commit 60af6a0

Browse files
author
Tor Didriksen
committed
Bug#18448743 ENABLED_LOCAL_INFILE ENABLED BY DEFAULT IN 5.6
Move the ENABLED_LOCAL_INFILE option from feature_set.cmake (which is included by default) to mysql_release.cmake (which is not included by default) mysql_release.cmake is included in PB builds, so local-infile will be enabled.
1 parent be2b6ef commit 60af6a0

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmake/build_configurations/feature_set.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,5 @@ IF(FEATURE_SET)
7777
ENDFOREACH()
7878
ENDIF()
7979

80-
OPTION(ENABLED_LOCAL_INFILE "" ON)
8180
SET(WITH_SSL bundled CACHE STRING "")
8281
SET(WITH_ZLIB bundled CACHE STRING "")

cmake/build_configurations/mysql_release.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ INCLUDE(CheckIncludeFiles)
1919
INCLUDE(CheckLibraryExists)
2020

2121
OPTION(DEBUG_EXTNAME "" ON)
22+
OPTION(ENABLED_LOCAL_INFILE "" ON)
2223

2324
IF(NOT COMPILATION_COMMENT)
2425
SET(COMPILATION_COMMENT "MySQL Community Server (GPL)")

sql-common/client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,8 +1679,8 @@ mysql_init(MYSQL *mysql)
16791679
strmov(mysql->net.sqlstate, not_error_sqlstate);
16801680

16811681
/*
1682-
Only enable LOAD DATA INFILE by default if configured with
1683-
--enable-local-infile
1682+
Only enable LOAD DATA INFILE by default if configured with option
1683+
ENABLED_LOCAL_INFILE
16841684
*/
16851685

16861686
#if defined(ENABLED_LOCAL_INFILE) && !defined(MYSQL_SERVER)

0 commit comments

Comments
 (0)