mirror of
https://github.com/vrana/adminer.git
synced 2025-08-15 11:04:02 +02:00
Fix comment
This commit is contained in:
@@ -926,18 +926,14 @@ if (!defined("DRIVER")) {
|
|||||||
"collation" => strtolower($param[9]),
|
"collation" => strtolower($param[9]),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$return = array(
|
return array(
|
||||||
"fields" => $fields,
|
"fields" => $fields,
|
||||||
"comment" => $connection->result("SELECT ROUTINE_COMMENT FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = " . q(DB) . " AND ROUTINE_NAME = " . q($name)),
|
"comment" => $connection->result("SELECT ROUTINE_COMMENT FROM information_schema.ROUTINES WHERE ROUTINE_SCHEMA = " . q(DB) . " AND ROUTINE_NAME = " . q($name)),
|
||||||
);
|
) + ($type != "FUNCTION" ? array("definition" => $match[11]) : array(
|
||||||
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]),
|
"returns" => array("type" => $match[12], "length" => $match[13], "unsigned" => $match[15], "collation" => $match[16]),
|
||||||
"definition" => $match[17],
|
"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
|
/** Get list of routines
|
||||||
|
Reference in New Issue
Block a user