Skip to content

Commit

Permalink
Issue #88: remove definer clause also for views and events, if wanted
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Nov 13, 2019
1 parent be689ed commit 17f6cb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tabletools.pas
Expand Up @@ -1588,7 +1588,7 @@ procedure TfrmTableTools.DoExport(DBObj: TDBObject);
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;
Expand Down Expand Up @@ -1622,7 +1622,7 @@ procedure TfrmTableTools.DoExport(DBObj: TDBObject);
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
Expand Down

0 comments on commit 17f6cb8

Please sign in to comment.