mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-14 01:56:36 +08:00
Allow reference table in foreign key tab to be from a different database. See comment #17 in issue #400 : http://code.google.com/p/heidisql/issues/detail?id=400#c17
This commit is contained in:
@ -898,6 +898,7 @@ type
|
||||
procedure ResetSelectedTableStuff;
|
||||
procedure SetWindowCaption;
|
||||
procedure OnMessageHandler(var Msg: TMsg; var Handled: Boolean);
|
||||
function MaskMulti(str: WideString): WideString;
|
||||
end;
|
||||
|
||||
|
||||
@ -2132,6 +2133,21 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
// Quote identifier, probably with multiple segments, e.g. db.table.column
|
||||
function TMainform.MaskMulti(str: WideString): WideString;
|
||||
var
|
||||
Segments: TWideStringlist;
|
||||
i: Integer;
|
||||
begin
|
||||
Segments := Explode('.', str);
|
||||
Result := '';
|
||||
for i:=0 to Segments.Count-1 do
|
||||
Result := Result + mask(Segments[i]) + '.';
|
||||
FreeAndNil(Segments);
|
||||
Delete(Result, Length(Result), 1);
|
||||
end;
|
||||
|
||||
|
||||
procedure TMainForm.actExportSettingsExecute(Sender: TObject);
|
||||
begin
|
||||
// Export settings to .reg-file
|
||||
|
Reference in New Issue
Block a user