Enable MYSQL_OPT_LOCAL_INFILE, seems still required on some systems for importing local CSV files

This commit is contained in:
Ansgar Becker
2020-11-23 17:53:09 +01:00
parent 42dc993743
commit dcd43bc843

View File

@ -2123,6 +2123,9 @@ begin
if Assigned(FLib.mysql_optionsv) then
FLib.mysql_optionsv(FHandle, Integer(MYSQL_OPT_CONNECT_ATTR_ADD), 'program_name', APPNAME);
// Seems to be still required on some systems, for importing CSV files
FLib.mysql_options(FHandle, Integer(MYSQL_OPT_LOCAL_INFILE), PAnsiChar('1'));
Connected := FLib.mysql_real_connect(
FHandle,
PAnsiChar(Utf8Encode(FinalHost)),