MXS-2568: Always enable LOCAL INFILE for testing

The automatic detection of LOCAL INFILE added in connector-c 3.0.9
requires that the option is enabled explicitly.
This commit is contained in:
Markus Mäkelä 2019-06-20 08:18:36 +03:00
parent 39df829384
commit dd944c7302
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -50,6 +50,9 @@ MYSQL* open_conn_db_flags(int port,
set_ssl(conn);
}
// MXS-2568: This fixes mxs1828_double_local_infile
mysql_optionsv(conn, MYSQL_OPT_LOCAL_INFILE, (void*)"1");
mysql_real_connect(conn,
ip.c_str(),
user.c_str(),
@ -81,6 +84,9 @@ MYSQL* open_conn_db_timeout(int port,
mysql_options(conn, MYSQL_OPT_READ_TIMEOUT, &timeout);
mysql_options(conn, MYSQL_OPT_WRITE_TIMEOUT, &timeout);
// MXS-2568: This fixes mxs1828_double_local_infile
mysql_optionsv(conn, MYSQL_OPT_LOCAL_INFILE, (void*)"1");
if (ssl)
{
set_ssl(conn);