mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 10:59:44 +02:00
* Added support for ftDateTime fields
* RecNo should return 0 if the dataset is closed, not 1 git-svn-id: trunk@6084 -
This commit is contained in:
parent
5f1f8936e5
commit
3594230958
@ -284,6 +284,7 @@ begin
|
||||
ftInteger: result:=SizeOf(Integer);
|
||||
ftDate: result:=SizeOf(TDateTime);
|
||||
ftTime: result:=SizeOf(TDateTime);
|
||||
ftDateTime: result:=SizeOf(TDateTime);
|
||||
else
|
||||
RaiseError(SErrFieldTypeNotSupported,[FieldDefs.Items[FieldNo-1].Name]);
|
||||
end;
|
||||
@ -853,7 +854,7 @@ Function TMemDataset.GetRecNo: Longint;
|
||||
begin
|
||||
UpdateCursorPos;
|
||||
if (FCurrRecNo<0) then
|
||||
Result:=1
|
||||
Result:=0
|
||||
else
|
||||
Result:=FCurrRecNo+1;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user