mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
CockroachDB: Pass param length to routine drop (cockroachdb/cockroach#142886)
This commit is contained in:
@@ -9,6 +9,11 @@ $row["fields"] = (array) $row["fields"];
|
||||
if ($_POST && !process_fields($row["fields"]) && !$error) {
|
||||
$orig = routine($_GET["procedure"], $routine);
|
||||
$temp_name = "$row[name]_adminer_" . uniqid();
|
||||
foreach ((array) $row["fields"] as $key => $field) {
|
||||
if ($field["field"] == "") {
|
||||
unset($row["fields"][$key]);
|
||||
}
|
||||
}
|
||||
drop_create(
|
||||
"DROP $routine " . routine_id($PROCEDURE, $orig),
|
||||
create_routine($routine, $row),
|
||||
|
Reference in New Issue
Block a user