When I try to open a table containing binary value using TMyQuery, exception is raised with a message 'malformed trail byte'.
In the stack trace I can see that you are trying to transform binary data from UTF8 to WideString, which doesn't make any sense.
Stack trace goes: TMySQLRecordset.Fetch, ProcessRow, GetDataFromRow, ConvertToWideString, Utf8ToWS.
Here is how to recreate the problem:
create table `Address`(
`AddressID` int not null,
`rowguid` binary(16) not null
);
insert into `Address`(`AddressID`,`rowguid`) values (1,0x9AADCB0D36CF483F84D8585C2D4EC6E9);
Malformed trail byte error
-
AndreyZ