Permalink
Browse files

Change to "LOAD DATA LOCAL INFILE" to read the temp file from the cli…

…ent machine
  • Loading branch information...
jhurliman committed May 27, 2013
1 parent 913752e commit 5d3c60f4d15202787dec94e9acd52d54a44631b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 models/mysql.js
View
@@ -170,7 +170,7 @@ function addTrack(artistID, fp, callback) {
if (err) return callback(err, null);
// Bulk insert the codes
- sql = 'LOAD DATA INFILE ? IGNORE INTO TABLE codes';
+ sql = 'LOAD DATA LOCAL INFILE ? IGNORE INTO TABLE codes';
client.query(sql, [tempName], function(err, info) {
// Remove the temporary file
fs.unlink(tempName, function(err2) {

0 comments on commit 5d3c60f

Please sign in to comment.