mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +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));
|
$result = (!$rows || $driver->insertUpdate($TABLE, $rows, $primary));
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$driver->commit();
|
$result = $driver->commit();
|
||||||
}
|
}
|
||||||
queries_redirect(remove_from_uri("page"), lang('%d row(s) have been imported.', $affected), $result);
|
queries_redirect(remove_from_uri("page"), lang('%d row(s) have been imported.', $affected), $result);
|
||||||
$driver->rollback(); // after queries_redirect() to not overwrite error
|
$driver->rollback(); // after queries_redirect() to not overwrite error
|
||||||
|
Reference in New Issue
Block a user