From 4fe10b26b03a205f5e3bd644870ac872c310c1b9 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 19 Sep 2024 16:00:54 +0200 Subject: [PATCH] postgre analyser fix --- plugins/dbgate-plugin-postgres/src/backend/Analyser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js index 0c9acaff..0f534bb5 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js +++ b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js @@ -62,7 +62,7 @@ class Analyser extends DatabaseAnalyser { ? `= '${splitCompositeDbName(dbname).schema}' ` : ' IS NOT NULL '; - return query.replace(/=SCHEMA_NAME_CONDITION/g, schemaCondition); + return query?.replace(/=SCHEMA_NAME_CONDITION/g, schemaCondition); } async _computeSingleObjectId() {