mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
#175 try to fix postgres analyser
This commit is contained in:
parent
00c98b10b9
commit
cdfbd73cc5
@ -127,6 +127,7 @@ class Analyser extends DatabaseAnalyser {
|
||||
idx.indkey
|
||||
.split(' ')
|
||||
.map(colid => indexcols.rows.find(col => col.oid == idx.oid && col.attnum == colid))
|
||||
.filter(col => col != null)
|
||||
.map(col => ({
|
||||
columnName: col.column_name,
|
||||
}))
|
||||
@ -145,6 +146,7 @@ class Analyser extends DatabaseAnalyser {
|
||||
idx.indkey
|
||||
.split(' ')
|
||||
.map(colid => indexcols.rows.find(col => col.oid == idx.oid && col.attnum == colid))
|
||||
.filter(col => col != null)
|
||||
.map(col => ({
|
||||
columnName: col.column_name,
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user