mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 16:29:21 +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);
|
ftInteger: result:=SizeOf(Integer);
|
||||||
ftDate: result:=SizeOf(TDateTime);
|
ftDate: result:=SizeOf(TDateTime);
|
||||||
ftTime: result:=SizeOf(TDateTime);
|
ftTime: result:=SizeOf(TDateTime);
|
||||||
|
ftDateTime: result:=SizeOf(TDateTime);
|
||||||
else
|
else
|
||||||
RaiseError(SErrFieldTypeNotSupported,[FieldDefs.Items[FieldNo-1].Name]);
|
RaiseError(SErrFieldTypeNotSupported,[FieldDefs.Items[FieldNo-1].Name]);
|
||||||
end;
|
end;
|
||||||
@ -853,7 +854,7 @@ Function TMemDataset.GetRecNo: Longint;
|
|||||||
begin
|
begin
|
||||||
UpdateCursorPos;
|
UpdateCursorPos;
|
||||||
if (FCurrRecNo<0) then
|
if (FCurrRecNo<0) then
|
||||||
Result:=1
|
Result:=0
|
||||||
else
|
else
|
||||||
Result:=FCurrRecNo+1;
|
Result:=FCurrRecNo+1;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user