since I upgrade from Delphi XE to Delphi Seattle I got an EVariantBadVar
when I try to assign a value to a TBytesField
like
procedure Test.SetHash(hash : TByteDynArray);
var
query : TAdoQuery;
a: TArray<byte>;
begin
query := ....
query.Sql.Text := 'SELECT [Key], [Hash] FROM [HashValues]...';
query.Insert();
a := TArray<byte>(hash);
// hash is from a webservice with type TByteDynArray
query.Fields[1].AsBytes := a; // here occurs the exception
query.Post();
...
The same code works without problems in Delphi XE.