With a query like this and log_text being a MEDIUMTEXT field:
SELECT log_text, cast(log_text AS CHAR) AS cast_as_field, FROM prj_log
SC will create these fields in a grid:
- log_text as MEDIUMTEXT
- cast_as_field as LONG_BLOB
So a CAST to CHAR with no size is still converted to a BLOB.
It should be converted to LONGTEXT.
DB is mariadb