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
[Bug]: ORD reverses the byte order of multibyte characters #28207
Activity
fix(sql): align ORD, BIT_COUNT and REGEXP UTF-8 semantics (#28267)
Ariznawlll commentedon Sep 7, 2026
测试版本
mainbcd5ed833b5400fe95f322e4028adb2bde3de0a46001原问题验证
é、中、😀的表,分别执行HEX和ORD。ORD,检查 2/3/4 字节 UTF-8 字符的返回值。Happy Path 覆盖
é、中、😀的 HEX 分别为C3A9、E4B8AD、F09F9880;ORD 分别为50089、14989485、4036991104。1/50089、2/14989485、3/4036991104,结果与字面量一致。Unhappy Path 覆盖
白盒验证
不适用。本轮验证公开 SQL 标量函数行为,未使用内部故障注入。
回归测试
已加入 MOTR PR #145:
suites/14_issue_regression/t/issue_28207_ord_utf8.test。测试证据
stmts=24 ok=24 fail=0。测试结论
测试通过。
fix(sql): align ORD, BIT_COUNT and REGEXP UTF-8 semantics (matrixorig…
fix(sql): align ORD, BIT_COUNT and REGEXP UTF-8 semantics (matrixorig…
fix(sql): align ORD, BIT_COUNT and REGEXP UTF-8 semantics (matrixorig…