Skip to content
Browse files

Rollback unsuccessful CSV import

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1328 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent 2159590 commit 6ba224be3c8ac5a6c01ca945d9143b1eff08f710 jakubvrana committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 adminer/select.inc.php
View
5 adminer/select.inc.php
@@ -119,8 +119,11 @@
}
}
}
- queries("COMMIT");
+ if ($result) {
+ queries("COMMIT");
+ }
queries_redirect(remove_from_uri("page"), lang('%d row(s) have been imported.', $affected), $result);
+ queries("ROLLBACK");
} else {
$error = upload_error($file);
}

0 comments on commit 6ba224b

Please sign in to comment.
Something went wrong with that request. Please try again.