mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
PostgreSQL: Fix PHP warning when creating new routine
This commit is contained in:
@@ -728,7 +728,7 @@ ORDER BY event_manipulation DESC") as $row
|
|||||||
$rows = get_rows('SELECT routine_definition AS definition, LOWER(external_language) AS language, *
|
$rows = get_rows('SELECT routine_definition AS definition, LOWER(external_language) AS language, *
|
||||||
FROM information_schema.routines
|
FROM information_schema.routines
|
||||||
WHERE routine_schema = current_schema() AND specific_name = ' . q($name));
|
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["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
|
$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
|
FROM information_schema.parameters
|
||||||
|
Reference in New Issue
Block a user