mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
test
This commit is contained in:
parent
be17301c91
commit
0238e6a7f1
@ -57,11 +57,11 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
|
|
||||||
createQuery(resFileName, typeFields, replacements = {}) {
|
createQuery(resFileName, typeFields, replacements = {}) {
|
||||||
const query = super.createQuery(sql[resFileName], typeFields, replacements);
|
const query = super.createQuery(sql[resFileName], typeFields, replacements);
|
||||||
const dbname = this.pool.__database_name__;
|
// const dbname = this.pool.__database_name__;
|
||||||
const schemaCondition = isCompositeDbName(dbname)
|
// const schemaCondition = isCompositeDbName(dbname)
|
||||||
? `= '${splitCompositeDbName(dbname).schema}' `
|
// ? `= '${splitCompositeDbName(dbname).schema}' `
|
||||||
: ' IS NOT NULL ';
|
// : ' IS NOT NULL ';
|
||||||
// const schemaCondition = ' IS NOT NULL ';
|
const schemaCondition = ' IS NOT NULL ';
|
||||||
|
|
||||||
return query?.replace(/=SCHEMA_NAME_CONDITION/g, schemaCondition);
|
return query?.replace(/=SCHEMA_NAME_CONDITION/g, schemaCondition);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user