diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2011-08-31 07:43:58 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2011-08-31 07:43:58 +0000 |
commit | 595f2e71ec10c9b5b8c9cc69b5e49faa0f34a98c (patch) | |
tree | a334c67376aace0bd586647fdaa7b9269da44b98 | |
parent | c268811b018f43625ac86ae1971b131c1dae4572 (diff) | |
download | php-git-595f2e71ec10c9b5b8c9cc69b5e49faa0f34a98c.tar.gz |
Since we are creating this csv file locally this should obviously
be a a LOCAL infile here for this to work reliably. For robustness
this should probably have a check for the local-infile server
setting as well.
-rw-r--r-- | ext/pdo_mysql/tests/pdo_mysql_exec_load_data.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/tests/pdo_mysql_exec_load_data.phpt b/ext/pdo_mysql/tests/pdo_mysql_exec_load_data.phpt index 37de557527..b550cb8da3 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_exec_load_data.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_exec_load_data.phpt @@ -69,7 +69,7 @@ if (($tmp[1] !== 'localhost') && ($tmp[1] !== '127.0.0.1')) fwrite($fp, b"2;bar"); fclose($fp); - $sql = sprintf("LOAD DATA INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filename)); + $sql = sprintf("LOAD DATA LOCAL INFILE %s INTO TABLE test FIELDS TERMINATED BY ';' LINES TERMINATED BY '\n'", $db->quote($filename)); if (exec_and_count(4, $db, $sql, 2)) { @@ -105,4 +105,4 @@ $db = MySQLPDOTest::factory(); $db->exec('DROP TABLE IF EXISTS test'); ?> --EXPECTF-- -done!
\ No newline at end of file +done! |