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:
@@ -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
|
||||
|
Reference in New Issue
Block a user