You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Compatibility]: BLOB and TEXT columns do not enforce MySQL family byte limits #28694
MO 应保留并在赋值路径按字节执行 MySQL BLOB/TEXT 家族容量:TINYBLOB/TINYTEXT 255、BLOB/TEXT 65535、MEDIUM* 16777215、LONG* 4294967295(受 MO 单值上限约束时应清晰报错)。在严格模式,超界 DML 应拒绝且不持久化;非严格模式的截断/告警行为应与已支持的字符串赋值语义一致。
Verified on current main 57c280e.\n\nTINYBLOB accepts 255 bytes and TEXT/BLOB accept 65535 bytes. The corresponding 256/65536-byte INSERT and UPDATE operations fail with error 1406, and the already stored row remains unchanged. The acceptance test passed three times.\n\nMOTR coverage was added in matrixorigin/motr#193:\nsuites/14_issue_regression/t/issue_28765_28694_28692_28222_compatibility.test.\n\nClosing as fixed.
Activity
Ariznawlll commentedon Sep 11, 2026
补充家族元数据核查(同一主线环境):
SHOW CREATE TABLE与information_schema.columns表明 MO 保留了TINYTEXT/TEXT/MEDIUMTEXT/LONGTEXT的家族和容量(255 / 65535 / 16777215 / 2147483647),但把TINYBLOB/BLOB/MEDIUMBLOB/LONGBLOB全部规范化成blob,column_type为BLOB(0)、character_maximum_length为 0。MySQL 8.3 则分别保留
tinyblob/blob/mediumblob/longblob,容量为 255 / 65535 / 16777215 / 4294967295。这也和当前规划层对MYSQL_TYPE_BLOB无条件生成无宽度T_blob的行为一致。Ariznawlll commentedon Sep 11, 2026
补充容量边界实证:
MEDIUMTEXT和MEDIUMBLOB各写入16777216bytes(声明上限16777215)后,MO 都成功持久化并由length(v)返回 16777216;MySQL 8.3 对两条 INSERT 均返回ERROR 1406 (22001)。这验证了问题并非只出现在 255/65535 的小边界,TEXT 与 BLOB 的中等家族上限同样未在 MO 赋值路径生效。[Compatibility]: enforce BLOB/TEXT family byte limits (#29121)
Ariznawlll commentedon Sep 21, 2026
Verified on current main 57c280e.\n\nTINYBLOB accepts 255 bytes and TEXT/BLOB accept 65535 bytes. The corresponding 256/65536-byte INSERT and UPDATE operations fail with error 1406, and the already stored row remains unchanged. The acceptance test passed three times.\n\nMOTR coverage was added in matrixorigin/motr#193:\nsuites/14_issue_regression/t/issue_28765_28694_28692_28222_compatibility.test.\n\nClosing as fixed.