From 6d59ed6d7e5d6dea87904aa95de13b5ba79f443d Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sun, 23 Feb 2025 18:17:11 +0100 Subject: [PATCH] Fix comment --- adminer/drivers/mysql.inc.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/adminer/drivers/mysql.inc.php b/adminer/drivers/mysql.inc.php index ba6a044a..1c5e2a12 100644 --- a/adminer/drivers/mysql.inc.php +++ b/adminer/drivers/mysql.inc.php @@ -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