Skip to content

Upgrade github.com/go-sql-driver/mysql to v1.8.1#12633

Open
dveeden wants to merge 4 commits into
pingcap:masterfrom
dveeden:upgrade_go-sql-driver_mysql
Open

Upgrade github.com/go-sql-driver/mysql to v1.8.1#12633
dveeden wants to merge 4 commits into
pingcap:masterfrom
dveeden:upgrade_go-sql-driver_mysql

Conversation

@dveeden
Copy link
Copy Markdown
Contributor

@dveeden dveeden commented May 12, 2026

What problem does this PR solve?

Issue Number: ref #12629

What is changed and how it works?

Separate go-sql-driver/mysql so we can upgrade go-mysql separately.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Questions

Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?

Release note

None

@ti-chi-bot ti-chi-bot Bot added the release-note-none Denotes a PR that doesn't merit a release note. label May 12, 2026
@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented May 12, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign 3pointer for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label May 12, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the github.com/go-sql-driver/mysql dependency from version 1.7.1 to 1.8.1 in the go.mod and go.sum files. I have no feedback to provide.

TestMySQLLogger: v1.8 logs from connection.go instead of packets.go.
ColumnsHolder: v1.8 returns typed values when scanning into *interface{};
scan into *[]byte to preserve the pre-v1.8 []uint8 contract that
downstream codec decoders depend on.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ti-chi-bot ti-chi-bot Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels May 12, 2026
dveeden and others added 2 commits May 12, 2026 11:34
Scanning into *[]byte (introduced in b4aa0e2 to preserve the pre-v1.8
[]uint8 contract) yields a typed-nil []byte for SQL NULL. Storing that
in holder.Values made `value == nil` checks in encodeValue miss NULLs,
falling through to `case []byte:` which produced "". Downstream
decodeColumn then failed strconv.ParseUint("") and returned nil,
panicking in decodeColumns ("cannot decode column").

Fixes TestLargeMessageHandleKeyOnly in pkg/sink/codec/simple.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dveeden
Copy link
Copy Markdown
Contributor Author

dveeden commented May 12, 2026

/retest

@ti-chi-bot
Copy link
Copy Markdown
Contributor

ti-chi-bot Bot commented May 12, 2026

@dveeden: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-dm-integration-test-next-gen 367ee76 link false /test pull-dm-integration-test-next-gen
pull-dm-integration-test 367ee76 link true /test pull-dm-integration-test
pull-cdc-integration-kafka-test 367ee76 link true /test pull-cdc-integration-kafka-test

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant