mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #88: remove definer clause also for views and events, if wanted
This commit is contained in:
@ -1588,7 +1588,7 @@ begin
|
||||
Struc := Struc + Quoter.QuoteIdent(FinalDbName)+'.';
|
||||
Struc := Struc + Quoter.QuoteIdent(DBObj.Name);
|
||||
Output(Struc, True, True, True, True, True);
|
||||
Struc := DBObj.CreateCode;
|
||||
Struc := DBObj.GetCreateCode(False, menuExportRemoveDefiner.Checked);
|
||||
if ToDb then
|
||||
Insert(Quoter.QuoteIdent(FinalDbName)+'.', Struc, Pos('VIEW', Struc) + 5 );
|
||||
end;
|
||||
@ -1622,7 +1622,7 @@ begin
|
||||
end;
|
||||
|
||||
lntEvent: begin
|
||||
Struc := DBObj.CreateCode;
|
||||
Struc := DBObj.GetCreateCode(False, menuExportRemoveDefiner.Checked);
|
||||
if ToDb then
|
||||
Insert(Quoter.QuoteIdent(FinalDbName)+'.', Struc, Pos('EVENT', Struc) + 6 );
|
||||
if ToFile or ToDir or ToClipboard then
|
||||
|
Reference in New Issue
Block a user