fix: string_agg not supported in redhist

This commit is contained in:
Jan Prochazka
2024-07-25 10:32:16 +02:00
parent 1b347c7e0b
commit 3867b7f5ba
3 changed files with 5 additions and 2 deletions

View File

@@ -138,7 +138,9 @@ class Analyser extends DatabaseAnalyser {
: null;
this.feedback({ analysingMessage: 'Loading routines' });
const routines = await this.analyserQuery('routines', ['procedures', 'functions']);
const routines = await this.analyserQuery('routines', ['procedures', 'functions'], {
$typeAgg: this.driver.dialect.stringAgg ? 'string_agg' : 'max',
});
this.feedback({ analysingMessage: 'Loading indexes' });
const indexes = this.driver.__analyserInternals.skipIndexes