From 0238e6a7f13d81875e5667dd4c7e90ac9f6397cc Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Thu, 19 Sep 2024 18:29:35 +0200 Subject: [PATCH] test --- plugins/dbgate-plugin-postgres/src/backend/Analyser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js index 35f91e42..323f2ae3 100644 --- a/plugins/dbgate-plugin-postgres/src/backend/Analyser.js +++ b/plugins/dbgate-plugin-postgres/src/backend/Analyser.js @@ -57,11 +57,11 @@ class Analyser extends DatabaseAnalyser { createQuery(resFileName, typeFields, replacements = {}) { const query = super.createQuery(sql[resFileName], typeFields, replacements); - const dbname = this.pool.__database_name__; - const schemaCondition = isCompositeDbName(dbname) - ? `= '${splitCompositeDbName(dbname).schema}' ` - : ' IS NOT NULL '; - // const schemaCondition = ' IS NOT NULL '; + // const dbname = this.pool.__database_name__; + // const schemaCondition = isCompositeDbName(dbname) + // ? `= '${splitCompositeDbName(dbname).schema}' ` + // : ' IS NOT NULL '; + const schemaCondition = ' IS NOT NULL '; return query?.replace(/=SCHEMA_NAME_CONDITION/g, schemaCondition); }