DSNParser: Always add mysql_local_infile=1 to the dsn string to enable client-side LOCAL INFILE

This commit is contained in:
Brian Fraser
2012-08-30 23:46:06 -03:00
parent e5a7db8ea2
commit 8654ac0819
2 changed files with 39 additions and 3 deletions

View File

@@ -244,7 +244,7 @@ sub get_cxn_params {
. join(';', map { "$opts{$_}->{dsn}=$info->{$_}" }
grep { defined $info->{$_} }
qw(F h P S A))
. ';mysql_read_default_group=client';
. ';mysql_read_default_group=client;mysql_local_infile=1';
}
PTDEBUG && _d($dsn);
return ($dsn, $info->{u}, $info->{p});