mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Enable MYSQL_OPT_LOCAL_INFILE, seems still required on some systems for importing local CSV files
This commit is contained in:
@ -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)),
|
||||
|
Reference in New Issue
Block a user