mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 00:23:57 +00:00
SYNC: [skip ci] fixed FK joining #1051
This commit is contained in:
committed by
Diflow
parent
0096a40132
commit
f37f1e794e
@@ -275,7 +275,11 @@ export class TableGridDisplay extends GridDisplay {
|
|||||||
const refTableInfo = this.dbinfo.tables.find(
|
const refTableInfo = this.dbinfo.tables.find(
|
||||||
x => x.schemaName == res.foreignKey.refSchemaName && x.pureName == res.foreignKey.refTableName
|
x => x.schemaName == res.foreignKey.refSchemaName && x.pureName == res.foreignKey.refTableName
|
||||||
);
|
);
|
||||||
if (refTableInfo && isTableColumnUnique(refTableInfo, res.foreignKey.columns[0].refColumnName)) {
|
if (
|
||||||
|
refTableInfo &&
|
||||||
|
res.foreignKey.columns.length == 1 &&
|
||||||
|
isTableColumnUnique(refTableInfo, res.foreignKey.columns[0].refColumnName)
|
||||||
|
) {
|
||||||
res.isForeignKeyUnique = true;
|
res.isForeignKeyUnique = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user