1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 06:37:33 +02:00

PostgreSQL: Fix PHP warning when creating new routine

This commit is contained in:
Jakub Vrana
2025-03-27 18:56:10 +01:00
parent a2ff6a7fb1
commit 4d22e8fd4e

View File

@@ -728,7 +728,7 @@ ORDER BY event_manipulation DESC") as $row
$rows = get_rows('SELECT routine_definition AS definition, LOWER(external_language) AS language, *
FROM information_schema.routines
WHERE routine_schema = current_schema() AND specific_name = ' . q($name));
$return = $rows[0];
$return = idx($rows, 0, array());
$return["returns"] = array("type" => $return["type_udt_name"]);
$return["fields"] = get_rows('SELECT parameter_name AS field, data_type AS type, character_maximum_length AS length, parameter_mode AS inout
FROM information_schema.parameters