From 91b6f4c225db78d0ddbad48ea54f273291b80333 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Tue, 21 Sep 2004 01:34:15 +0000 Subject: [PATCH] tell the client library to use CLIENT_LOCAL_FILES --- ChangeLog | 2 ++ libraries/dbi/mysql.dbi.lib.php | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3f1c597703..1e895fe35e 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2004-09-20 Marc Delisle * read_dump.php, libraries/read_dump.lib.php: bug #1030644, error importing when last table exported was empty + * libraries/dbi/mysql.dbi.lib.php: tell the client library to use + CLIENT_LOCAL_FILES (flag 128) 2004-09-20 Michal Čihař * Documentation.html: Add info about theme generations. diff --git a/libraries/dbi/mysql.dbi.lib.php b/libraries/dbi/mysql.dbi.lib.php index 19086f2bfb..c5eb35cb5a 100644 --- a/libraries/dbi/mysql.dbi.lib.php +++ b/libraries/dbi/mysql.dbi.lib.php @@ -49,6 +49,10 @@ function PMA_DBI_connect($user, $password) { if (PMA_MYSQL_CLIENT_API >= 32349) { $client_flags = $cfg['Server']['compress'] && defined('MYSQL_CLIENT_COMPRESS') ? MYSQL_CLIENT_COMPRESS : 0; + // always use CLIENT_LOCAL_FILES as defined in mysql_com.h + // for the case where the client library was not compiled + // with --enable-local-infile + $client_flags |= 128; } if (empty($client_clags)) {