1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

PostgreSQL import support

This commit is contained in:
Jakub Vrana
2010-07-22 14:04:57 +02:00
parent a7cdc85497
commit c505440194
4 changed files with 26 additions and 3 deletions

View File

@@ -148,7 +148,7 @@ if ($_POST && !$error) {
foreach ($matches2[1] as $i => $col) {
$set[idf_escape($cols[$i])] = ($col == "" && $fields[$cols[$i]]["null"] ? "NULL" : $connection->quote(str_replace('""', '"', preg_replace('~^"|"$~', '', $col))));
}
$result = insert_update($TABLE, $set);
$result = insert_update($TABLE, $set, $indexes);
if (!$result) {
break;
}