Don't try to drop new object
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@315 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
21667cbac0
commit
34e2b66b09
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
$dropped = false;
|
$dropped = false;
|
||||||
if ($_POST && !$error) {
|
if ($_POST && !$error) {
|
||||||
if ($_POST["dropped"] || $mysql->query("DROP VIEW " . idf_escape($_GET["createv"]))) {
|
if (strlen($_GET["createv"]) && ($_POST["dropped"] || $mysql->query("DROP VIEW " . idf_escape($_GET["createv"])))) {
|
||||||
if ($_POST["drop"]) {
|
if ($_POST["drop"]) {
|
||||||
redirect(substr($SELF, 0, -1), lang('View has been dropped.'));
|
redirect(substr($SELF, 0, -1), lang('View has been dropped.'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ $routine = (isset($_GET["function"]) ? "FUNCTION" : "PROCEDURE");
|
||||||
|
|
||||||
$dropped = false;
|
$dropped = false;
|
||||||
if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"]) {
|
if ($_POST && !$error && !$_POST["add"] && !$_POST["drop_col"]) {
|
||||||
if ($_POST["dropped"] || $mysql->query("DROP $routine " . idf_escape($_GET["procedure"]))) {
|
if (strlen($_GET["procedure"]) && ($_POST["dropped"] || $mysql->query("DROP $routine " . idf_escape($_GET["procedure"])))) {
|
||||||
if ($_POST["drop"]) {
|
if ($_POST["drop"]) {
|
||||||
redirect(substr($SELF, 0, -1), lang('Routine has been dropped.'));
|
redirect(substr($SELF, 0, -1), lang('Routine has been dropped.'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ $trigger_event = array("INSERT", "UPDATE", "DELETE");
|
||||||
|
|
||||||
$dropped = false;
|
$dropped = false;
|
||||||
if ($_POST && !$error) {
|
if ($_POST && !$error) {
|
||||||
if ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"]))) {
|
if (strlen($_GET["name"]) && ($_POST["dropped"] || $mysql->query("DROP TRIGGER " . idf_escape($_GET["name"])))) {
|
||||||
if ($_POST["drop"]) {
|
if ($_POST["drop"]) {
|
||||||
redirect($SELF . "table=" . urlencode($_GET["trigger"]), lang('Trigger has been dropped.'));
|
redirect($SELF . "table=" . urlencode($_GET["trigger"]), lang('Trigger has been dropped.'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue