Lazarus and fpc trunk

Theres some errors compiling DA for lazraus and fpc trunk.

is required actual version to release for aarch64 (arm 64 bits) iot devices.

uDACore.pas(1252,13) Error: Incompatible types: got “AnsiString” expected “TBytes”

uDACore.pas(1314,37) Error: Incompatible type for arg no. 1: Got “TBytes”, expected “AnsiString”

Best regards.

Solve in that way, please confirm is correct

function TDABaseField.GetAsBlob: TBlobData;
begin
  {$IFDEF Delphi2009UP}
  Result := GetAsBytes;
  {$ELSE}
  {$IFDEF FPC}
  Result := GetAsBytes;
  {$ELSE}
  Result := AnsiBytesToString(GetAsBytes);
  {$ENDIF}
  {$ENDIF}
end;

Hi,

I can’t reproduce any problems with the latest lazarus:

looks like in new FPC they have made breaking changes and changed TBlobData declaration:

yes, fix is correct.

1 Like