59 |
|
protected |
60 |
|
FTransactionIntf: ITransaction; |
61 |
|
FExecTransactionIntf: ITransaction; |
62 |
+ |
FStaleReferenceChecks: boolean; |
63 |
|
FSQLStatementType: TIBSQLStatementTypes; { Select, update, delete, insert, create, alter, etc...} |
64 |
|
FSQLDialect: integer; |
65 |
|
FOpen: boolean; |
139 |
|
function GetBatchCompletion: IBatchCompletion; virtual; |
140 |
|
function GetBatchRowLimit: integer; |
141 |
|
procedure SetBatchRowLimit(aLimit: integer); |
142 |
+ |
{Stale Reference Check} |
143 |
+ |
procedure SetStaleReferenceChecks(Enable:boolean); {default true} |
144 |
+ |
function GetStaleReferenceChecks: boolean; |
145 |
|
public |
146 |
|
property ChangeSeqNo: integer read FChangeSeqNo; |
147 |
|
property SQLParams: ISQLParams read GetSQLParams; |
183 |
|
FSQLDialect := SQLDialect; |
184 |
|
FSQL := sql; |
185 |
|
FBatchRowLimit := DefaultBatchRowLimit; |
186 |
+ |
FStaleReferenceChecks := true; |
187 |
|
end; |
188 |
|
|
189 |
|
constructor TFBStatement.CreateWithParameterNames(Attachment: IAttachment; |
349 |
|
FBatchRowLimit := aLimit; |
350 |
|
end; |
351 |
|
|
352 |
+ |
procedure TFBStatement.SetStaleReferenceChecks(Enable: boolean); |
353 |
+ |
begin |
354 |
+ |
FStaleReferenceChecks := Enable; |
355 |
+ |
end; |
356 |
+ |
|
357 |
+ |
function TFBStatement.GetStaleReferenceChecks: boolean; |
358 |
+ |
begin |
359 |
+ |
Result := FStaleReferenceChecks; |
360 |
+ |
end; |
361 |
+ |
|
362 |
|
function TFBStatement.OpenCursor(aTransaction: ITransaction): IResultSet; |
363 |
|
begin |
364 |
|
Close; |