mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 11:26:00 +00:00
try to fix test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user