Bugfix: Setting a field to an empty string causes a WriteBuffer(nil, 0) which in turn apparently causes Memory to be nil. Therefore, interpret this as empty string rather than NULL. Fixes issue #316.

This commit is contained in:
rosenfield.albert
2008-06-25 13:05:16 +00:00
parent ca940f56a2
commit c40b8d680b

View File

@ -115,7 +115,7 @@ begin
begin
if Assigned(Self.Memory) then
Blob.SetStream(Self)
else Blob.SetStream(nil);
else Blob.SetString('');
try
if Assigned(FField.Dataset) then
THackedDataset(FField.DataSet).DataEvent(deFieldChange, LongInt(FField));