mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 02:41:50 +02:00
+ IsCursorOpen implemented correctly
This commit is contained in:
parent
18f0316d81
commit
ca1656c69c
@ -191,6 +191,7 @@ type
|
|||||||
|
|
||||||
TIBQuery = class (TDBDataset)
|
TIBQuery = class (TDBDataset)
|
||||||
private
|
private
|
||||||
|
FOpen : Boolean;
|
||||||
FTransaction : TIBTransaction;
|
FTransaction : TIBTransaction;
|
||||||
FDatabase : TIBDatabase;
|
FDatabase : TIBDatabase;
|
||||||
FStatus : array [0..19] of ISC_STATUS;
|
FStatus : array [0..19] of ISC_STATUS;
|
||||||
@ -1023,6 +1024,7 @@ begin
|
|||||||
FBufferSize := 0;
|
FBufferSize := 0;
|
||||||
FRecordSize := 0;
|
FRecordSize := 0;
|
||||||
FRecordCount:= 0;
|
FRecordCount:= 0;
|
||||||
|
FOpen:=False;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIBQuery.InternalDelete;
|
procedure TIBQuery.InternalDelete;
|
||||||
@ -1093,6 +1095,7 @@ begin
|
|||||||
DescribeStatement;
|
DescribeStatement;
|
||||||
AllocFldBuffers;
|
AllocFldBuffers;
|
||||||
Execute;
|
Execute;
|
||||||
|
FOpen:=True;
|
||||||
InternalInitFieldDefs;
|
InternalInitFieldDefs;
|
||||||
if DefaultFields then
|
if DefaultFields then
|
||||||
CreateFields;
|
CreateFields;
|
||||||
@ -1118,7 +1121,7 @@ end;
|
|||||||
|
|
||||||
function TIBQuery.IsCursorOpen: Boolean;
|
function TIBQuery.IsCursorOpen: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := False;
|
Result := FOpen;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TIBQuery.SetBookmarkFlag(Buffer: PChar; Value: TBookmarkFlag);
|
procedure TIBQuery.SetBookmarkFlag(Buffer: PChar; Value: TBookmarkFlag);
|
||||||
|
Loading…
Reference in New Issue
Block a user