1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 16:44:17 +02:00

Use ALTER VIEW and don't use temporary object if changing name

This commit is contained in:
Jakub Vrana
2013-05-13 11:12:28 -07:00
parent 3ed0ce926c
commit 982974fe27
3 changed files with 41 additions and 20 deletions

View File

@@ -9,13 +9,15 @@ if ($_POST && !process_fields($row["fields"]) && !$error) {
drop_create(
"DROP $routine " . idf_escape($PROCEDURE),
create_routine($routine, $row),
"DROP $routine " . idf_escape($row["name"]),
create_routine($routine, array("name" => $temp_name) + $row),
"DROP $routine " . idf_escape($temp_name),
substr(ME, 0, -1),
lang('Routine has been dropped.'),
lang('Routine has been altered.'),
lang('Routine has been created.'),
$PROCEDURE
$PROCEDURE,
$row["name"]
);
}