From: Jakub Vrana Date: Sun, 19 Feb 2017 13:22:41 +0000 (+0100) Subject: Verify commit success after import. X-Git-Tag: v4.3.0~36 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=b8cd3b317db4fc5ca0ebc437895266d245d926be;p=adminer.git Verify commit success after import. Fixes https://sourceforge.net/p/adminer/bugs-and-features/521/. --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 567f667d..9f9f5eb3 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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