[Bug]: prepared binary execute misses MYSQL_TYPE_UUID non-NULL parameters
Maintainer thường phản hồi trong vòng 1 ngày
@matrix-meow đang làm issue này rồi.
Từ ngày 27/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is there an existing issue for the same bug?
- I have checked the existing issues.
Searched open and closed issues for MYSQL_TYPE_UUID, prepared UUID, and unsupport parameter type. Closed #23981 fixed the analogous JSON decoder omission, but no issue covers UUID.
Branch Name
main
Commit ID
c0cef5c9cce2164fedd201c188bfffe4d2d09a96
A read-only check of main snapshot 9bf005bfcd06ef722351bccd9c9a59833ce2b5bd also found no UUID branch in ParseExecuteData; runtime reproduction is against the commit above.
Other Environment Information
- Hardware parameters: single-CN local deployment
- OS type: macOS
- Others: independent raw MySQL protocol probe; PyMySQL is used only for connection authentication and text-protocol controls, not to emulate binary parameter binding
Actual Behavior
A non-NULL parameter sent with MatrixOne's MYSQL_TYPE_UUID type (243) in COM_STMT_EXECUTE is rejected with Error 20101:
internal error: unsupport parameter type
The failure also occurs when a UUID NULL execution first caches type 243 and a subsequent execution uses new_params_bound_flag=0 with a non-NULL UUID value.
Expected Behavior
MYSQL_TYPE_UUID should decode its length-encoded string payload and reach statement execution, just as the other supported string-like binary parameter domains do. SELECT CAST(? AS UUID) should return the supplied canonical UUID.
Steps to Reproduce
-
Send
COM_STMT_PREPAREfor:SELECT CAST(? AS UUID)SELECT ?reproduces the same decoder failure. -
Send
COM_STMT_EXECUTEwith one parameter:- type:
MYSQL_TYPE_UUID(243) - unsigned flag: 0
- value: length-encoded string
00112233-4455-6677-8899-aabbccddeeff
- type:
-
Observe Error 20101
unsupport parameter type. -
Optional cached-type path: first execute a NULL with type 243, then execute the non-NULL value with
new_params_bound_flag=0; the same error occurs.
Two independent MatrixOne processes produced identical 15-event logs, each with SHA-256 7004d7b00191f5fb55e713242a57f363c3072e66621c27439ff19c6d0ed363d7.
Controls
- Direct
SELECT CAST('00112233-4455-6677-8899-aabbccddeeff' AS UUID)succeeds. - Text SQL
PREPARE/EXECUTEwith the same UUID succeeds. - UUID NULL succeeds on the binary handle.
- On the same handle after the UUID failure, changing the parameter to
MYSQL_TYPE_VAR_STRING(253) succeeds both with a new type and with cached-type reuse, returning the complete UUID. SELECT ?has the same non-NULL UUID failure and the same STRING positive controls.
MySQL 8.0.46 defines 243 as MYSQL_TYPE_INVALID, not UUID, and rejects it with 1210. It is therefore not an oracle for UUID support; the expected behavior follows from MatrixOne's own UUID protocol definition and concrete parameter-type mapping.
Additional information
pkg/defines/type.go:55 defines MYSQL_TYPE_UUID = 243, and pkg/frontend/computation_wrapper.go:1248-1249 maps it to types.T_uuid. However, ParseExecuteData in pkg/frontend/mysql_protocol.go:1127-1301 has no UUID case. NULL bypasses the type switch, while every non-NULL UUID reaches the default unsupport parameter type error.
Closed #23981 and merged PR #23982 fixed the same kind of omission for MYSQL_TYPE_JSON; UUID appears to have been left out of that decoder coverage.
- Ngôn ngữ chính
- Go
- Star
- 1.9k
- Fork
- 312
- Merge trung bình
- 21 giờ 57 phút
- Pull request đã merge (30 ngày)
- 730
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của matrixorigin/matrixone
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
matrixorigin/matrixone#33363 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
matrixorigin/matrixone#33362 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SLEEP rejects NULL and negative durations that MySQL acceptsCó thể đã có người làm @XuPeng-SH đã nhận 7 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
matrixorigin/matrixone#32653 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: TestChangeWatchProxy loses its first tenant connection during PingContext in Ubuntu CICó thể đã có người làm @XuPeng-SH đã nhận hôm nay. Đang mởkind/bug needs-triage
matrixorigin/matrixone#33371 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: TestDaemonClaimSQLRoundTrip exhausts its shared deadline during the stale claim update in Ubuntu CICó thể đã có người làm @XuPeng-SH đã nhận hôm nay. Đang mởkind/bug needs-triage
matrixorigin/matrixone#33370 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của matrixorigin/matrixone
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
A vessel you are not flying should draw dim grey, orbit and arrow (ADR 0041), not in its own colourĐang mởready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
jasonfen/terminal-space-program#1020 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
router-for-me/CLIProxyAPI#8573 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
sipeed/picoclaw#3477 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày