mirror of
https://github.com/vrana/adminer.git
synced 2025-08-11 09:04:02 +02:00
Verify commit success after import.
Fixes https://sourceforge.net/p/adminer/bugs-and-features/521/.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user