mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
fix: remove redundant field from ParameterInfo
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
module.exports = `
|
||||
SELECT
|
||||
proc.specific_schema AS specific_schema,
|
||||
proc.routine_name AS routine_name,
|
||||
proc.specific_schema AS schema_name,
|
||||
proc.routine_name AS pure_name,
|
||||
proc.routine_type as routine_type,
|
||||
args.parameter_name AS pure_name,
|
||||
args.parameter_name AS parameter_name,
|
||||
args.parameter_mode,
|
||||
args.data_type AS data_type,
|
||||
args.ordinal_position AS parameter_index,
|
||||
args.parameter_mode AS parameter_mode,
|
||||
CASE
|
||||
WHEN args.parameter_mode IN ('OUT', 'INOUT') THEN TRUE
|
||||
ELSE FALSE
|
||||
END AS is_output_paramter
|
||||
END AS is_output_parameter
|
||||
FROM
|
||||
information_schema.routines proc
|
||||
LEFT JOIN
|
||||
@@ -21,7 +22,7 @@ WHERE
|
||||
proc.routine_schema NOT IN ('pg_catalog', 'information_schema') -- Exclude system schemas
|
||||
AND proc.routine_type IN ('PROCEDURE', 'FUNCTION') -- Filter for procedures
|
||||
ORDER BY
|
||||
specific_schema,
|
||||
routine_name,
|
||||
schema_name,
|
||||
parameter_name,
|
||||
args.ordinal_position;
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user