mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Reference table of a foreign key is prefixed with its database, which causes the table editor to display no columns in the dropdown editor. Fix that by outsourcing some logic from main unit into TForeignKey.ReferenceTableObj. Closes #158
This commit is contained in:
@ -2319,7 +2319,7 @@ begin
|
||||
3: begin
|
||||
Key := FForeignKeys[Node.Index];
|
||||
SetEditor := TSetEditorLink.Create(VT, True);
|
||||
Obj := DBObject.Connection.FindObject(DBObject.Database, Key.ReferenceTable);
|
||||
Obj := Key.ReferenceTableObj;
|
||||
if Obj <> nil then begin
|
||||
Columns := Obj.TableColumns;
|
||||
for Col in Columns do begin
|
||||
|
Reference in New Issue
Block a user