Skip to content
Permalink
Browse files

Issue #88: remove definer clause also for views and events, if wanted

  • Loading branch information
ansgarbecker committed Nov 13, 2019
1 parent be689ed commit 17f6cb851a0c6d70a948757fe5a157ba0d95594c
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/tabletools.pas
@@ -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;
@@ -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

0 comments on commit 17f6cb8

Please sign in to comment.
You can’t perform that action at this time.