Skip to content

Commit 0aec938

Browse files
author
Radovan Janjic
committed
bug fix
1 parent acf6751 commit 0aec938

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

MySQL_wrapper.class.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,6 @@ function query($sql) {
221221
$p['replace'][] = $this->escape($v);
222222
}
223223
$sql = str_replace($p['search'], $p['replace'], $sql);
224-
echo $sql . PHP_EOL;
225224
unset($l, $p);
226225
}
227226
if($this->logQueries) $start = $this->getMicrotime();
@@ -477,7 +476,7 @@ function importUpdateCSV2Table($file, $table, $delimiter = ',', $enclosure = '"'
477476
$cols[] = "`{$c}` = VALUES(`{$c}`)";
478477
}
479478

480-
$this->query("INSERT INTO `{$table}` ( `" . implode('`, `', $columns) . "`) SELECT * FROM `{$tmp_name}` ON DUPLICATE KEY UPDATE " . implode(', ', $cols) . ";");
479+
$this->query("INSERT INTO `{$table}` ( `" . implode('`, `', $columns) . "` ) SELECT * FROM `{$tmp_name}` ON DUPLICATE KEY UPDATE " . implode(', ', $cols) . ";");
481480
$i = $this->affected;
482481

483482
// Drop tmp table

0 commit comments

Comments
 (0)