Reduce size
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1080 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
dea345cbd5
commit
2c7657835c
|
@ -105,7 +105,7 @@ if ($_POST && !$error) {
|
|||
foreach ($matches2[1] as $i => $col) {
|
||||
$set .= ", " . idf_escape($cols[$i]) . " = " . (!strlen($col) && $fields[$cols[$i]]["null"] ? "NULL" : $dbh->quote(str_replace('""', '"', preg_replace('~^"|"$~', '', $col))));
|
||||
}
|
||||
$set = substr($set, 2);
|
||||
$set = substr($set, 1);
|
||||
$result = queries("INSERT INTO " . idf_escape($_GET["select"]) . " SET$set ON DUPLICATE KEY UPDATE$set");
|
||||
if (!$result) {
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue