71 |
|
procedure SetPrepared(Value: Boolean); |
72 |
|
procedure SetPrepare(Value: Boolean); |
73 |
|
procedure WriteParamData(Writer: TWriter); |
74 |
< |
function GetStmtHandle: TISC_STMT_HANDLE; |
74 |
> |
function GetStmtHandle: IStatement; |
75 |
|
procedure UpdateSQL; |
76 |
|
|
77 |
|
protected |
105 |
|
procedure ResetParser; override; |
106 |
|
property Prepared: Boolean read FPrepared write SetPrepare; |
107 |
|
property ParamCount: Word read GetParamsCount; |
108 |
< |
property StmtHandle: TISC_STMT_HANDLE read GetStmtHandle; |
108 |
> |
property StmtHandle: IStatement read GetStmtHandle; |
109 |
|
property StatementType; |
110 |
|
property Text: string read FText; |
111 |
|
property RowsAffected: Integer read GetRowsAffected; |
141 |
|
|
142 |
|
implementation |
143 |
|
|
144 |
+ |
uses FBMessages; |
145 |
+ |
|
146 |
|
{ TIBQuery } |
147 |
|
|
148 |
|
constructor TIBQuery.Create(AOwner: TComponent); |
401 |
|
var |
402 |
|
i : integer; |
403 |
|
Buffer: Pointer; |
404 |
< |
SQLParam: TIBXSQLVAR; |
404 |
> |
SQLParam: ISQLParam; |
405 |
|
|
406 |
|
begin |
407 |
|
for I := 0 to FParams.Count - 1 do |
504 |
|
AddFieldToList(Params[i].Name, Self, DetailFields); |
505 |
|
end; |
506 |
|
|
507 |
< |
function TIBQuery.GetStmtHandle: TISC_STMT_HANDLE; |
507 |
> |
function TIBQuery.GetStmtHandle: IStatement; |
508 |
|
begin |
509 |
|
Result := SelectStmtHandle; |
510 |
|
end; |
511 |
|
|
512 |
|
procedure TIBQuery.UpdateSQL; |
513 |
|
begin |
514 |
< |
if not FSQLUpdating and not FInQueryChanged then |
514 |
> |
if not FSQLUpdating and not FInQueryChanged and (SQL.Text <> SelectSQL.Text) then |
515 |
|
begin |
516 |
|
FSQLUpdating := true; |
517 |
|
try |