Skip to content

fix(deps): update module github.com/go-sql-driver/mysql to v1.10.2 - #168

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-go-sql-driver-mysql-1.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/github.com-go-sql-driver-mysql-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/go-sql-driver/mysql v1.6.0 → v1.10.2 age confidence

Release Notes

go-sql-driver/mysql (github.com/go-sql-driver/mysql)

v1.10.2

Compare Source

Changes since v1.10.1.

Security fixes
  • Return ErrMalformPkt instead of panicking on truncated initial handshake
    packets, including the greeting received before TLS negotiation.
    (GHSA-9qjq-77h9-895w, #​1850)

  • Discard connections after a failed LOAD DATA LOCAL INFILE, including reader
    Close() errors, so unread results from a multi-statement batch cannot be
    returned to a later caller. Preserve the server's response status and avoid
    retrying the batch after an upload write failure. (GHSA-4v5x-9mc8-gr98)

  • Reject interpolateParams=true combined with an unsafe multibyte charset
    (big5, sjis, gbk, cp932, gb18030) given by charset or Charset().
    Previously only collation was checked. Collations are now matched
    case-insensitively and by their charset prefix. The check also runs again
    after a BeforeConnect callback has modified the config. Stop rejecting
    gb2312_bin; GB2312 trailing bytes cannot contain a backslash. The error text
    changed from invalid DSN: interpolateParams can not be used with unsafe collations
    to interpolateParams cannot be used with unsafe charsets, because it may also
    be returned by NewConnector or Connector.Connect after BeforeConnect.
    Applications comparing the complete error string must update their comparison. (#​1836)

  • Fix interpolateParams not treating -- followed by \v, \f, another
    control character, DEL, or a raw 0xA0 byte as a comment. Other non-ASCII
    bytes after -- remain outside the supported interpolation grammar. (#​1836)

  • Fix interpolateParams treating the * that opens /*/ as closing the
    comment. (#​1835)

Bugfixes
  • Honor BeforeConnect changes to the timeout, dialer, logger, and connection
    attributes without modifying the shared connector. (#​1809)

  • Validate prepared statement arguments and packet size before sending long
    data, and reset the statement if a long-data write fails. (#​1810)

  • Fix the reported precision of unsigned DECIMAL columns. (#​1813)

  • Preserve full two-byte column collation IDs so IDs above 255 do not cause
    text columns to be reported as binary columns. (#​1818)

  • Fix the inverted check for collations outside the handshake's one-byte map.
    Accept them when a charset is supplied, using SET NAMES ... COLLATE;
    reject them when no charset is supplied instead of silently using the
    default collation. (#​1832)

  • Preserve and log idle server error packets before discarding a connection,
    with bounded diagnostics over plain, TLS, and zlib connections. (#​1843)

CI
  • Update GitHub Actions dependencies and add a workflow dependency lockfile. (#​1838)

  • Pin the lint job to Go 1.26 and Staticcheck v0.8.1 for compatibility. (#​1824)

  • Limit Go module Dependabot pull requests to security updates. (#​1829)

  • Test Go 1.27 and MySQL 9.7 while retaining Go 1.24 and the existing database
    compatibility jobs.

v1.10.1

Compare Source

  • Fix Config.FormatDSN() dropping Addr when Net is empty.
    It now uses the default tcp network so configs with only Addr round-trip correctly. (#​1770)

  • Fix typed-nil json.RawMessage with interpolateParams=true being interpolated as an empty string.
    It is now interpolated as SQL NULL, matching server-side prepared statements. (#​1782)

  • Add MariaDB 11.8 and 12.3 to the test matrix. (#​1774)

v1.10.0

Compare Source

  • Fix getSystemVar("max_allowed_packet") potentially returned wrong value. (#​1754)
    This affects only when maxAllowedPacket=0 is set.

  • Bump filippo.io/edwards25519 from 1.1.1 to 1.2.0. (#​1756)
    While older versions have reported CVEs, they do not affect go-mysql.

  • Update Go versions to 1.24-1.26. (#​1763)

  • Enhance interpolateParams to correctly handle placeholders. (#​1732)
    The question mark (?) within strings and comments will no longer be treated as a placeholder.

v1.9.3

Compare Source

  • tx.Commit() and tx.Rollback() returned ErrInvalidConn always.
    Now they return cached real error if present. (#​1690)

  • Optimize reading small result sets to fix a performance regression
    introduced by compression protocol support. (#1707)

  • Fix db.Ping() on compressed connection. (#​1723)

v1.9.2

Compare Source

v1.9.2 is a re-release of v1.9.1 due to a release process issue; no changes were made to the content.

v1.9.1

Compare Source

Major Changes
Bugfixes
  • go.mod: fix go version format (#​1682)
  • Fix FormatDSN missing ConnectionAttributes (#​1619)

v1.9.0

Compare Source

Major Changes
  • Implement zlib compression. (#​1487)
  • Supported Go version is updated to Go 1.21+. (#​1639)
  • Add support for VECTOR type introduced in MySQL 9.0. (#​1609)
  • Config object can have custom dial function. (#​1527)
Bugfixes
  • Fix auth errors when username/password are too long. (#​1625)
  • Check if MySQL supports CLIENT_CONNECT_ATTRS before sending client attributes. (#​1640)
  • Fix auth switch request handling. (#​1666)
Other changes
  • Add "filename:line" prefix to log in go-mysql. Custom loggers now show it. (#​1589)
  • Improve error handling. It reduces the "busy buffer" errors. (#​1595, #​1601, #​1641)
  • Use strconv.Atoi to parse max_allowed_packet. (#​1661)
  • rejectReadOnly option now handles ER_READ_ONLY_MODE (1290) error too. (#​1660)

v1.8.1

Compare Source

What's Changed

Bugfixes:

Full Changelog: go-sql-driver/mysql@v1.8.0...v1.8.1

v1.8.0

Compare Source

What's Changed

Major changes

  • Use SET NAMES charset COLLATE collation. by @​methane in #​1437

    • Older go-mysql-driver used collation_id in the handshake packet. But it caused collation mismatch in some situation.
    • If you don't specify charset nor collation, go-mysql-driver sends SET NAMES utf8mb4 for new connection. This uses server's default collation for utf8mb4.
    • If you specify charset, go-mysql-driver sends SET NAMES <charset>. This uses the server's default collation for <charset>.
    • If you specify collation and/or charset, go-mysql-driver sends SET NAMES charset COLLATE collation.
  • PathEscape dbname in DSN. by @​methane in #​1432

    • This is backward incompatible in rare case. Check your DSN.
  • Drop Go 1.13-17 support by @​methane in #​1420

    • Use Go 1.18+
  • Parse numbers on text protocol too by @​methane in #​1452

    • When text protocol is used, go-mysql-driver passed bare []byte to database/sql for avoid unnecessary allocation and conversion.
    • If user specified *any to Scan(), database/sql passed the []byte into the target variabe.
    • This confused users because most user doesn't know when text/binary protocol used.
    • go-mysql-driver 1.8 converts integer/float values into int64/double even in text protocol. This doesn't increase allocation compared to []byte and conversion cost is negilible.
  • New options start using the Functional Option Pattern to avoid increasing technical debt in the Config object. Future version may introduce Functional Option for existing options, but not for now.

Other changes

New Contributors

Full Changelog: go-sql-driver/mysql@v1.7.1...v1.8.0

v1.7.1

Compare Source

What's Changed

New Contributors

Full Changelog: go-sql-driver/mysql@v1.7.0...v1.7.1

v1.7.0: Version 1.7

Compare Source

Changes:

  • Drop support of Go 1.12 (#​1211)
  • Refactoring (*textRows).readRow in a more clear way (#​1230)
  • util: Reduce boundary check in escape functions. (#​1316)
  • enhancement for mysqlConn handleAuthResult (#​1250)

New Features:

  • support Is comparison on MySQLError (#​1210)
  • return unsigned in database type name when necessary (#​1238)
  • Add API to express like a --ssl-mode=PREFERRED MySQL client (#​1370)
  • Add SQLState to MySQLError (#​1321)

Bugfixes:


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.16 -> 1.24.0

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants