Rollback unsuccessful CSV import
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1328 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
2159590ad6
commit
6ba224be3c
|
@ -119,8 +119,11 @@ if ($_POST && !$error) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($result) {
|
||||||
queries("COMMIT");
|
queries("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);
|
||||||
|
queries("ROLLBACK");
|
||||||
} else {
|
} else {
|
||||||
$error = upload_error($file);
|
$error = upload_error($file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue