32 |
|
|
33 |
|
uses |
34 |
|
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs, |
35 |
< |
ibselectsqleditor, IBDatabase, IBCustomDataset; |
35 |
> |
ibselectsqleditor, IBDatabase, IBCustomDataset, IBSQLEditFrame; |
36 |
|
|
37 |
|
type |
38 |
|
|
73 |
|
GenerateParams.Checked := DataSet.GenerateParamNames; |
74 |
|
end; |
75 |
|
IBSQLEditFrame1.SQLText.Lines.Assign(SelectSQL); |
76 |
+ |
IBSQLEditFrame1.SelectProcs := true; |
77 |
|
Result := ShowModal = mrOK; |
78 |
|
if Result then |
79 |
|
begin |
90 |
|
|
91 |
|
procedure TIBRefreshSQLEditorForm.GenerateBtnClick(Sender: TObject); |
92 |
|
begin |
93 |
< |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked); |
93 |
> |
if PageControl.ActivePage = ExecutePage then |
94 |
> |
IBSQLEditFrame1.GenerateExecuteSQL(QuoteFields.Checked) |
95 |
> |
else |
96 |
> |
IBSQLEditFrame1.GenerateRefreshSQL(QuoteFields.Checked); |
97 |
|
end; |
98 |
|
|
99 |
|
|