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]: binary string numeric casts use byte value instead of MySQL string parsing #25264
MySQL treats _binary X'3132' as the binary string containing ASCII text 12 when casting to numeric types:
12 12
Actual Behavior
MatrixOne interprets the bytes as the integer value 0x3132:
12594 12594
Notes
Found during Batch A of MySQL compatibility type-conversion exploration. Binary literal casts to CHAR and fixed BINARY(N) match MySQL and were added to BVT; the numeric-cast rows were excluded.
Activity
add mysql compatibility type conversion and comparison bvt cases (#25219
fix cast binary (#25549)
daviszhen commentedon Jul 9, 2026
fixed
Ariznawlll commentedon Jul 9, 2026
在最新 main 分支验证通过,问题已修复。
验证版本:
23ce67cfc1fddd36e6428cb11db28613dee031acfix(compile): LOAD DATA with compressed file hangs due to empty dispatch source address (#25556)验证 SQL:
实际结果:
结果符合 MySQL 预期,不再出现之前返回
12594 / 12594的问题。已补充 motr 回归用例:
suites/14_issue_regression/t/issue_25264_binary_string_numeric_cast.testsuites/14_issue_regression/r/issue_25264_binary_string_numeric_cast.result回归验证通过:
add mysql compatibility type conversion and comparison bvt cases (mat…
fix cast binary (matrixorigin#25549)
add mysql compatibility type conversion and comparison bvt cases (mat…
fix cast binary (matrixorigin#25549)
add mysql compatibility type conversion and comparison bvt cases (mat…
fix cast binary (matrixorigin#25549)