mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 22:03:58 +00:00
fix data grid join problem #565
This commit is contained in:
@@ -149,7 +149,8 @@ export class TableGridDisplay extends GridDisplay {
|
|||||||
},
|
},
|
||||||
right: {
|
right: {
|
||||||
exprType: 'column',
|
exprType: 'column',
|
||||||
columnName: table.primaryKey.columns[0].columnName,
|
columnName:
|
||||||
|
column.foreignKey?.columns?.[0]?.refColumnName ?? table.primaryKey?.columns?.[0]?.columnName,
|
||||||
source: { name: table, alias: childAlias },
|
source: { name: table, alias: childAlias },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user