mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-15 02:54:07 +08:00
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:
@ -115,7 +115,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
if Assigned(Self.Memory) then
|
if Assigned(Self.Memory) then
|
||||||
Blob.SetStream(Self)
|
Blob.SetStream(Self)
|
||||||
else Blob.SetStream(nil);
|
else Blob.SetString('');
|
||||||
try
|
try
|
||||||
if Assigned(FField.Dataset) then
|
if Assigned(FField.Dataset) then
|
||||||
THackedDataset(FField.DataSet).DataEvent(deFieldChange, LongInt(FField));
|
THackedDataset(FField.DataSet).DataEvent(deFieldChange, LongInt(FField));
|
||||||
|
Reference in New Issue
Block a user