From c40b8d680bacbe7bd6ef440b26f76c99c8c81e18 Mon Sep 17 00:00:00 2001 From: "rosenfield.albert" Date: Wed, 25 Jun 2008 13:05:16 +0000 Subject: [PATCH] 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. --- components/zeosdbo/src/component/ZStreamBlob.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/zeosdbo/src/component/ZStreamBlob.pas b/components/zeosdbo/src/component/ZStreamBlob.pas index ac51e65b..3ddda1d8 100644 --- a/components/zeosdbo/src/component/ZStreamBlob.pas +++ b/components/zeosdbo/src/component/ZStreamBlob.pas @@ -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));