From e3d1e4f53e5a9b507f22412fa21372c6a055312e Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 29 Apr 2021 09:32:59 +0200 Subject: [PATCH] fixed analysing postgre functions #105 --- plugins/dbgate-plugin-postgres/src/backend/sql/routines.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dbgate-plugin-postgres/src/backend/sql/routines.js b/plugins/dbgate-plugin-postgres/src/backend/sql/routines.js index 80c18960..56ce1f12 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/sql/routines.js +++ b/plugins/dbgate-plugin-postgres/src/backend/sql/routines.js @@ -8,8 +8,8 @@ select from information_schema.routines where routine_schema != 'information_schema' and routine_schema != 'pg_catalog' and ( - (routine_type = 'PROCEDURE' and ('procedures:' || routine_schema || '.' || routine_schema) =OBJECT_ID_CONDITION) + (routine_type = 'PROCEDURE' and ('procedures:' || routine_schema || '.' || routine_name) =OBJECT_ID_CONDITION) or - (routine_type = 'FUNCTION' and ('functions:' || routine_schema || '.' || routine_schema) =OBJECT_ID_CONDITION) + (routine_type = 'FUNCTION' and ('functions:' || routine_schema || '.' || routine_name) =OBJECT_ID_CONDITION) ) `;