Repository navigation
test(frontend): cover prepared numeric protocol lifecycle - #25893
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
XuPeng-SH
left a comment
There was a problem hiding this comment.
No blocking findings on the latest head.
The prepared-statement protocol coverage now exercises the real COM_STMT_PREPARE / EXECUTE / CLOSE lifecycle end to end, and the small frontend fixes line up with that coverage: prepare metadata now carries the expected character attributes, and joined MySQL errors preserve the intended server error code / SQLSTATE while keeping the full message text. I did not find a new correctness or unhappy-path blocker in the updated diff.
gouhongshen
left a comment
There was a problem hiding this comment.
Codex automated review
No correctness, compatibility, concurrency, resource, performance, unhappy-path, or coverage regressions found. Existing discussion had no unresolved findings, and current-head CI passed the new protocol lifecycle test and BVT coverage.
Merge Queue Status
This pull request spent 1 hour 56 minutes 12 seconds in the queue, including 59 minutes 53 seconds running CI. Required conditions to merge
|
…in#25893) Adds end-to-end coverage for the numeric prepared-statement protocol lifecycle. The integration test forces `go-sql-driver/mysql` to use real `COM_STMT_PREPARE`, `COM_STMT_EXECUTE`, and `COM_STMT_CLOSE` packets and reuses one server-side statement across signed integers, unsigned integers, strings, NULLs, and client parameter type changes. It verifies exact values above `2^53`, parameter count metadata, DECIMAL result metadata, stable conversion errors, statement reuse after errors, and explicit cleanup. The BVT covers the SQL PREPARE/EXECUTE lifecycle, repeated execution, numeric transport changes, NULLs, signed and unsigned values, conversion failures, and successful reuse after a failure. DML assignment-context cases remain scoped to matrixorigin#25752 and are intentionally not duplicated here. Validation: - `TestIssue25753PreparedNumericProtocolLifecycle` - full `./pkg/frontend` unit tests - prepared numeric planner unit tests - `go vet` for affected and dependent packages with the repository CGo setup - `make build` - mo-tester: 31/31 statements passed - `git diff --check` Approved by: @XuPeng-SH, @gouhongshen, @heni02
…in#25893) Adds end-to-end coverage for the numeric prepared-statement protocol lifecycle. The integration test forces `go-sql-driver/mysql` to use real `COM_STMT_PREPARE`, `COM_STMT_EXECUTE`, and `COM_STMT_CLOSE` packets and reuses one server-side statement across signed integers, unsigned integers, strings, NULLs, and client parameter type changes. It verifies exact values above `2^53`, parameter count metadata, DECIMAL result metadata, stable conversion errors, statement reuse after errors, and explicit cleanup. The BVT covers the SQL PREPARE/EXECUTE lifecycle, repeated execution, numeric transport changes, NULLs, signed and unsigned values, conversion failures, and successful reuse after a failure. DML assignment-context cases remain scoped to matrixorigin#25752 and are intentionally not duplicated here. Validation: - `TestIssue25753PreparedNumericProtocolLifecycle` - full `./pkg/frontend` unit tests - prepared numeric planner unit tests - `go vet` for affected and dependent packages with the repository CGo setup - `make build` - mo-tester: 31/31 statements passed - `git diff --check` Approved by: @XuPeng-SH, @gouhongshen, @heni02
…in#25893) Adds end-to-end coverage for the numeric prepared-statement protocol lifecycle. The integration test forces `go-sql-driver/mysql` to use real `COM_STMT_PREPARE`, `COM_STMT_EXECUTE`, and `COM_STMT_CLOSE` packets and reuses one server-side statement across signed integers, unsigned integers, strings, NULLs, and client parameter type changes. It verifies exact values above `2^53`, parameter count metadata, DECIMAL result metadata, stable conversion errors, statement reuse after errors, and explicit cleanup. The BVT covers the SQL PREPARE/EXECUTE lifecycle, repeated execution, numeric transport changes, NULLs, signed and unsigned values, conversion failures, and successful reuse after a failure. DML assignment-context cases remain scoped to matrixorigin#25752 and are intentionally not duplicated here. Validation: - `TestIssue25753PreparedNumericProtocolLifecycle` - full `./pkg/frontend` unit tests - prepared numeric planner unit tests - `go vet` for affected and dependent packages with the repository CGo setup - `make build` - mo-tester: 31/31 statements passed - `git diff --check` Approved by: @XuPeng-SH, @gouhongshen, @heni02
What type of PR is this?
Which issue(s) this PR fixes:
Fixes #25753
What this PR does / why we need it:
Adds end-to-end coverage for the numeric prepared-statement protocol lifecycle.
The integration test forces
go-sql-driver/mysqlto use realCOM_STMT_PREPARE,COM_STMT_EXECUTE, andCOM_STMT_CLOSEpackets and reusesone server-side statement across signed integers, unsigned integers, strings,
NULLs, and client parameter type changes. It verifies exact values above
2^53, parameter count metadata, DECIMAL result metadata, stable conversionerrors, statement reuse after errors, and explicit cleanup.
The BVT covers the SQL PREPARE/EXECUTE lifecycle, repeated execution, numeric
transport changes, NULLs, signed and unsigned values, conversion failures, and
successful reuse after a failure. DML assignment-context cases remain scoped to
#25752 and are intentionally not duplicated here.
Validation:
TestIssue25753PreparedNumericProtocolLifecycle./pkg/frontendunit testsgo vetfor affected and dependent packages with the repository CGo setupmake buildgit diff --check