This commit is contained in:
Jan Prochazka 2024-09-19 18:29:35 +02:00
parent be17301c91
commit 0238e6a7f1

View File

@ -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);
}