Verify commit success after import.
Fixes https://sourceforge.net/p/adminer/bugs-and-features/521/.
This commit is contained in:
parent
64a49e95e8
commit
b8cd3b317d
|
@ -205,7 +205,7 @@ if ($_POST && !$error) {
|
|||
}
|
||||
$result = (!$rows || $driver->insertUpdate($TABLE, $rows, $primary));
|
||||
if ($result) {
|
||||
$driver->commit();
|
||||
$result = $driver->commit();
|
||||
}
|
||||
queries_redirect(remove_from_uri("page"), lang('%d row(s) have been imported.', $affected), $result);
|
||||
$driver->rollback(); // after queries_redirect() to not overwrite error
|
||||
|
|
Loading…
Reference in a new issue