mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
string_agg usage fix
This commit is contained in:
@@ -55,8 +55,8 @@ class Analyser extends DatabaseAnalyser {
|
||||
super(pool, driver, version);
|
||||
}
|
||||
|
||||
createQuery(resFileName, typeFields) {
|
||||
const query = super.createQuery(sql[resFileName], typeFields);
|
||||
createQuery(resFileName, typeFields, replacements = {}) {
|
||||
const query = super.createQuery(sql[resFileName], typeFields, replacements);
|
||||
return query;
|
||||
}
|
||||
|
||||
@@ -139,7 +139,8 @@ class Analyser extends DatabaseAnalyser {
|
||||
|
||||
this.feedback({ analysingMessage: 'Loading routines' });
|
||||
const routines = await this.analyserQuery('routines', ['procedures', 'functions'], {
|
||||
$typeAgg: this.driver.dialect.stringAgg ? 'string_agg' : 'max',
|
||||
$typeAggFunc: this.driver.dialect.stringAgg ? 'string_agg' : 'max',
|
||||
$typeAggParam: this.driver.dialect.stringAgg ? ", '|'" : '',
|
||||
});
|
||||
|
||||
this.feedback({ analysingMessage: 'Loading indexes' });
|
||||
|
||||
Reference in New Issue
Block a user