1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-14 18:44:02 +02:00

MS SQL: Import all CSV rows with one command

This commit is contained in:
Jakub Vrana
2025-02-26 22:27:43 +01:00
parent e8fa48a257
commit e075f4bd8b
2 changed files with 14 additions and 12 deletions

View File

@@ -205,7 +205,7 @@ if ($_POST && !$error) {
}
$result = (!$rows || $driver->insertUpdate($TABLE, $rows, $primary));
if ($result) {
$result = $driver->commit();
$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