Skip to content

Commit

Permalink
Rollback unsuccessful CSV import
Browse files Browse the repository at this point in the history
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1328 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information
jakubvrana committed Feb 24, 2010
1 parent 2159590 commit 6ba224b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion adminer/select.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6ba224b

Please sign in to comment.