1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 01:54:00 +02:00

Fix comment

This commit is contained in:
Jakub Vrana
2025-02-23 18:17:11 +01:00
parent eb0d5c3c5e
commit 6d59ed6d7e

View File

@@ -926,18 +926,14 @@ if (!defined("DRIVER")) {
"collation" => strtolower($param[9]),
);
}
$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(
) + ($type != "FUNCTION" ? array("definition" => $match[11]) : 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
);
"language" => "SQL", // available in information_schema.ROUTINES.BODY_STYLE
));
}
/** Get list of routines