mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 20:40:24 +02:00
* Fixed AV while filtering datasets with null-fields
git-svn-id: trunk@20389 -
This commit is contained in:
parent
c29ce4c891
commit
942c2d035e
@ -181,13 +181,11 @@ end;
|
||||
|
||||
procedure TStringFieldVar.Refresh(Buffer: TRecordBuffer);
|
||||
var Fieldbuf : TStringFieldBuffer;
|
||||
s : string;
|
||||
begin
|
||||
if not FField.DataSet.GetFieldData(FField,@Fieldbuf) then
|
||||
s := ''
|
||||
FFieldVal^:=#0
|
||||
else
|
||||
s := Fieldbuf;
|
||||
strcopy(FFieldVal,@s[1]);
|
||||
strcopy(FFieldVal,@Fieldbuf[0]);
|
||||
end;
|
||||
|
||||
//--TFloatFieldVar-----------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user