Closed dimitri-yatsenko closed 11 years ago
It's probably because column_type is of type LONGTEXT. Probably mym doesn't properly interpret that as a string.
No, this seems to be specific to the information schema. LONGTEXT attributes in user-defined tables work fine.
Dimitri, are you sure about this? Based on the source code, mym will treat a LONGTEXT column just like a BLOB column and then try to deserialize it as MATLAB data. Unless the first characters in the blob happen to be "mYm" or "ZL123", mym will then decide that it cannot deserialize the data and return it as a uint8 array.
Correcting this behavior should be possible by inspecting the charsetnr
field in the MYSQL_FIELD structure. This field is set to 63 for binary data.
Example