From d058003cc9e963afbae10304cb7dfdeadbaab83c Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 27 May 2021 14:47:14 +0200 Subject: [PATCH] [g analyser fix --- plugins/dbgate-plugin-postgres/src/backend/Analyser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js index 76c60070..d74d07bc 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js +++ b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js @@ -150,7 +150,7 @@ class Analyser extends DatabaseAnalyser { contentHash: x.hash_code, })), procedures: routineModificationsQueryData.rows - .filter(x => x.objectType == 'PROCEDURE') + .filter(x => x.object_type == 'PROCEDURE') .map(x => ({ objectId: `procedures:${x.schema_name}.${x.pure_name}`, pureName: x.pure_name, @@ -158,7 +158,7 @@ class Analyser extends DatabaseAnalyser { contentHash: x.hash_code, })), functions: routineModificationsQueryData.rows - .filter(x => x.objectType == 'FUNCTION') + .filter(x => x.object_type == 'FUNCTION') .map(x => ({ objectId: `functions:${x.schema_name}.${x.pure_name}`, pureName: x.pure_name,