mirror of
https://github.com/vrana/adminer.git
synced 2025-08-12 01:24:17 +02:00
Truncate requires DROP privilege since MySQL 5.1.16 and is available on DB info page
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1241 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -57,7 +57,7 @@ if ($_POST && !$error) {
|
||||
if (!$_POST["import"]) { // edit
|
||||
$result = true;
|
||||
$affected = 0;
|
||||
$command = ($_POST["delete"] ? ($_POST["all"] && !$where ? "TRUNCATE " : "DELETE FROM ") : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($TABLE);
|
||||
$command = ($_POST["delete"] ? "DELETE FROM " : ($_POST["clone"] ? "INSERT INTO " : "UPDATE ")) . idf_escape($TABLE);
|
||||
$set = array();
|
||||
if (!$_POST["delete"]) {
|
||||
foreach ($columns as $name => $val) { //! should check also for edit or insert privileges
|
||||
|
Reference in New Issue
Block a user