mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Fix wrong offset in db.table string when checking for foreign key match. Fixes issue #3160.
This commit is contained in:
@@ -2227,8 +2227,8 @@ begin
|
||||
RefTable := Key.ReferenceTable;
|
||||
i := Pos('.', RefTable);
|
||||
if i > 0 then begin
|
||||
RefDatabase := Copy(RefTable, 1, i);
|
||||
RefTable := Copy(RefTable, i, MaxInt);
|
||||
RefDatabase := Copy(RefTable, 1, i-1);
|
||||
RefTable := Copy(RefTable, i+1, MaxInt);
|
||||
end;
|
||||
RefCreateCode := DBObject.Connection.GetCreateCode(RefDatabase, RefTable, lntTable);
|
||||
RefColumns := TTableColumnList.Create(True);
|
||||
|
||||
Reference in New Issue
Block a user