mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 05:16:00 +00:00
fix analyser for redfshift
This commit is contained in:
@@ -67,8 +67,12 @@ class Analyser extends DatabaseAnalyser {
|
|||||||
? await this.driver.query(this.pool, this.createQuery('matviewColumns', ['matviews']))
|
? await this.driver.query(this.pool, this.createQuery('matviewColumns', ['matviews']))
|
||||||
: null;
|
: null;
|
||||||
const routines = await this.driver.query(this.pool, this.createQuery('routines', ['procedures', 'functions']));
|
const routines = await this.driver.query(this.pool, this.createQuery('routines', ['procedures', 'functions']));
|
||||||
const indexes = await this.driver.query(this.pool, this.createQuery('indexes', ['tables']));
|
const indexes = this.driver.__analyserInternals.skipIndexes
|
||||||
const indexcols = await this.driver.query(this.pool, this.createQuery('indexcols', ['tables']));
|
? { rows: [] }
|
||||||
|
: await this.driver.query(this.pool, this.createQuery('indexes', ['tables']));
|
||||||
|
const indexcols = this.driver.__analyserInternals.skipIndexes
|
||||||
|
? { rows: [] }
|
||||||
|
: await this.driver.query(this.pool, this.createQuery('indexcols', ['tables']));
|
||||||
const uniqueNames = await this.driver.query(this.pool, this.createQuery('uniqueNames', ['tables']));
|
const uniqueNames = await this.driver.query(this.pool, this.createQuery('uniqueNames', ['tables']));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -83,6 +83,10 @@ const redshiftDriver = {
|
|||||||
...dialect,
|
...dialect,
|
||||||
stringAgg: false,
|
stringAgg: false,
|
||||||
},
|
},
|
||||||
|
__analyserInternals: {
|
||||||
|
refTableCond: '',
|
||||||
|
skipIndexes: true,
|
||||||
|
},
|
||||||
engine: 'redshift@dbgate-plugin-postgres',
|
engine: 'redshift@dbgate-plugin-postgres',
|
||||||
title: 'Amazon Redshift',
|
title: 'Amazon Redshift',
|
||||||
defaultPort: 5439,
|
defaultPort: 5439,
|
||||||
|
|||||||
Reference in New Issue
Block a user