mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Prepare for multi insertUpdate()
This commit is contained in:
@@ -239,7 +239,7 @@ if (!defined("DRIVER")) {
|
||||
|
||||
function insertUpdate($table, $set, $primary) {
|
||||
foreach ($set as $key => $val) {
|
||||
$set[$key] = "$key = $val";
|
||||
$set[$key] = "$key = VALUES($key)";
|
||||
}
|
||||
$update = implode(", ", $set);
|
||||
return queries("INSERT INTO " . table($table) . " SET $update ON DUPLICATE KEY UPDATE $update");
|
||||
|
Reference in New Issue
Block a user