It comes out of the MSpace#resultInstance() custom data type generator. The failure indicates that for a -1 (or any negative value) or null, we should return a varchar(LONGTEXT) which is empty. Will fix.