When we used UniDAC 7.3.10, then with using TDataSet.FieldByName MySQL returns correctly Null value in column COLUMN_DEFAULT in table INFORMATION_SCHEMA.COLUMNS. With new UniDAC 8.1.2 is returned empty string - it is bad value.
I look at more deep, and see that problem is probably in method:
Code: Select all
function TWideMemoField.GetAsVariant: Variant;
begin
Result := GetAsString;
end;
I assume it's a bug.
Now, in our code, i use workaround:
Code: Select all
// Result is Variant
Field := (Dataset as TDataset).FieldByName(FieldName);
if Field.IsNull then
Result := Null
else
Result := Field.Value;
Mario