Skip to content

Commit f9f8221

Browse files
author
Bogdan Degtyariov
committed
WL13884: Stage 2
1 parent e941baf commit f9f8221

File tree

4 files changed

+465
-29
lines changed

4 files changed

+465
-29
lines changed

cppconn/connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
#define OPT_INIT_COMMAND "preInit"
6161
#define OPT_POST_INIT_COMMAND "postInit"
6262
#define OPT_LOCAL_INFILE "OPT_LOCAL_INFILE"
63-
#define OPT_ALLOW_LOAD_DATA_LOCAL_PATH "OPT_ALLOW_LOAD_DATA_LOCAL_PATH"
63+
#define OPT_LOAD_DATA_LOCAL_DIR "OPT_LOAD_DATA_LOCAL_DIR"
6464

6565
/*
6666
SSL related

driver/mysql_connection.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ static const String2IntMap stringOptions[]=
303303
#if MYCPPCONN_STATIC_MYSQL_VERSION_ID >= 50700
304304
{OPT_TLS_VERSION, MYSQL_OPT_TLS_VERSION, false},
305305
#endif
306-
{OPT_ALLOW_LOAD_DATA_LOCAL_PATH, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, false}
306+
{OPT_LOAD_DATA_LOCAL_DIR, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, false}
307307
};
308308

309309

@@ -1717,6 +1717,9 @@ MySQL_Connection::setClientOption(const sql::SQLString & optionName, const void
17171717
#else
17181718
throw MethodNotImplementedException("MySQL_Prepared_Statement::setResultSetType");
17191719
#endif
1720+
} else if (!optionName.compare(OPT_LOAD_DATA_LOCAL_DIR))
1721+
{
1722+
proxy->options(MYSQL_OPT_LOAD_DATA_LOCAL_DIR, optionValue);
17201723
}
17211724
return this;
17221725
}

test/unit/classes/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ SET(test_uri_sources
280280
IF(WIN32)
281281
SET(test_uri_sources
282282
${test_uri_sources}
283-
"${CMAKE_SOURCE_DIR}/driver/mysql_uri.h"
283+
"${CMAKE_SOURCE_DIR}/jdbc/driver/mysql_uri.h"
284284
uri.h)
285285
ENDIF(WIN32)
286286

0 commit comments

Comments
 (0)