1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Show comments at routine call (bug #874)

This commit is contained in:
Jakub Vrana
2025-02-23 16:35:11 +01:00
parent 42de70d032
commit 3ad62d55c8
3 changed files with 27 additions and 4 deletions

View File

@@ -926,11 +926,14 @@ if (!defined("DRIVER")) {
"collation" => strtolower($param[9]),
);
}
if ($type != "FUNCTION") {
return array("fields" => $fields, "definition" => $match[11]);
}
return array(
$return = array(
"fields" => $fields,
"comment" => $connection->result("SELECT ROUTINE_COMMENT FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = " . q(DB) . " AND ROUTINE_NAME = " . q($name)),
);
if ($type != "FUNCTION") {
return $return + array("definition" => $match[11]);
}
return $return + array(
"returns" => array("type" => $match[12], "length" => $match[13], "unsigned" => $match[15], "collation" => $match[16]),
"definition" => $match[17],
"language" => "SQL", // available in information_schema.ROUTINES.PARAMETER_STYLE