Repository navigation
fix(deps): update module github.com/go-sql-driver/mysql to v1.11.0 - #168
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Contributor
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
renovate
Bot
force-pushed
the
renovate/github.com-go-sql-driver-mysql-1.x
branch
from
November 28, 2026 01:25
c97a89d to
ba8c460
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.6.0→v1.11.0Release Notes
go-sql-driver/mysql (github.com/go-sql-driver/mysql)
v1.11.0Compare Source
Changes since v1.10.2.
Requirements
versions are MySQL 8.0 and MariaDB 10.11. (#1803)
New features
Add the
tinyInt1IsBoolDSN parameter andTinyInt1IsBoolfunctional option,disabled by default to preserve numeric
TINYINTbehavior. When enabled,signed, non-
ZEROFILLTINYINT(1)columns reportBOOLEANand scan typesboolorsql.NullBool; zero is returned asfalseand non-zero values astrue. This applies to both text-protocol queries and prepared statements.For non-NULL values, enabling the option makes integer scans fail and string
scans return
"false"or"true"instead of numeric strings. (#1805, #1845)Add a pluggable authentication system with the
AuthPlugininterface,AuthContext, andRegisterAuthPlugin. Custom plugins receive the connectioncontext and an immutable snapshot of the selected credentials, established
transport, and configured RSA public key. (#1696)
Refactor the built-in authentication methods to use the plugin system and
support multi-step authentication flows with multiple auth switch requests and
continuation packets. Authentication now validates plugin state, rejects
unsolicited public keys, preserves errors from plugins, and starts plugins
only after the TLS handshake has completed. (#1696)
Add OpenID Connect authentication with the
OIDCTokenoption. The driversends the token over TLS. (#1820)
Add support for MariaDB PARSEC authentication. (#1827)
Add optional zstd protocol compression. Import
github.com/go-sql-driver/mysql/zstdfor side effects and enablecompress=trueto use zstd when the server supports it, with zlib as afallback. (#1823)
Preserve the order of DSN system variables when setting them on the server
and when calling
FormatDSN. UseAddParamto specify that order whenconfiguring a connection programmatically. (#1807)
Bugfixes
For text queries, return
BIGINT UNSIGNEDvalues tosql.Scannerasint64when they fit and as decimal bytes for larger values. (#1860)Handle omitted column metadata in prepared statement
Execcalls onMariaDB. (#1862)
Return
ErrMalformPktfor truncated OK, EOF, column definition, andstatement prepare response packets. (#1858)
Pass authentication switch data to plugins unchanged. (#1864)
Return the server error when available after a partial write. Discard the
connection on SQLSTATE class 08 errors except error 1047. (#1852)
Performance
Implement
driver.RowsColumnScanneron Go 1.27 and later for both textqueries and prepared statements. Reduce allocations when decoding short
and empty column values. (#1816, #1846)
Skip compression for outgoing payloads smaller than 512 bytes. (#1834)
v1.10.2Compare Source
Changes since v1.10.1.
Security fixes
Return
ErrMalformPktinstead of panicking on truncated initial handshakepackets, including the greeting received before TLS negotiation.
(GHSA-9qjq-77h9-895w, #1850)
Discard connections after a failed
LOAD DATA LOCAL INFILE, including readerClose()errors, so unread results from a multi-statement batch cannot bereturned 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=truecombined with an unsafe multibyte charset(
big5,sjis,gbk,cp932,gb18030) given bycharsetorCharset().Previously only
collationwas checked. Collations are now matchedcase-insensitively and by their charset prefix. The check also runs again
after a
BeforeConnectcallback has modified the config. Stop rejectinggb2312_bin; GB2312 trailing bytes cannot contain a backslash. The error textchanged from
invalid DSN: interpolateParams can not be used with unsafe collationsto
interpolateParams cannot be used with unsafe charsets, because it may alsobe returned by
NewConnectororConnector.ConnectafterBeforeConnect.Applications comparing the complete error string must update their comparison. (#1836)
Fix
interpolateParamsnot treating--followed by\v,\f, anothercontrol character, DEL, or a raw
0xA0byte as a comment. Other non-ASCIIbytes after
--remain outside the supported interpolation grammar. (#1836)Fix
interpolateParamstreating the*that opens/*/as closing thecomment. (#1835)
Bugfixes
Honor
BeforeConnectchanges to the timeout, dialer, logger, and connectionattributes 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.1Compare Source
Fix
Config.FormatDSN()droppingAddrwhenNetis empty.It now uses the default
tcpnetwork so configs with onlyAddrround-trip correctly. (#1770)Fix typed-nil
json.RawMessagewithinterpolateParams=truebeing 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.0Compare Source
Fix
getSystemVar("max_allowed_packet")potentially returned wrong value. (#1754)This affects only when
maxAllowedPacket=0is 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.3Compare Source
tx.Commit()andtx.Rollback()returnedErrInvalidConnalways.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.2Compare 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.1Compare Source
Major Changes
Bugfixes
v1.9.0Compare Source
Major Changes
Bugfixes
Other changes
strconv.Atoito parse max_allowed_packet. (#1661)rejectReadOnlyoption now handles ER_READ_ONLY_MODE (1290) error too. (#1660)v1.8.1Compare Source
What's Changed
Bugfixes:
Full Changelog: go-sql-driver/mysql@v1.8.0...v1.8.1
v1.8.0Compare Source
What's Changed
Major changes
Use
SET NAMES charset COLLATE collation. by @methane in #1437collation_idin the handshake packet. But it caused collation mismatch in some situation.SET NAMES utf8mb4for new connection. This uses server's default collation for utf8mb4.SET NAMES <charset>. This uses the server's default collation for<charset>.SET NAMES charset COLLATE collation.PathEscape dbname in DSN. by @methane in #1432
Drop Go 1.13-17 support by @methane in #1420
Parse numbers on text protocol too by @methane in #1452
[]byteto database/sql for avoid unnecessary allocation and conversion.*anytoScan(), database/sql passed the[]byteinto the target variabe.[]byteand 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
Adding DeregisterDialContext to prevent memory leaks with dialers we don't need anymore by @jypelle in #1422
Make logger configurable per connection by @frozenbonito in #1408
Fix ColumnType.DatabaseTypeName for mediumint unsigned by @evanelias in #1428
Add connection attributes by @Daemonxiao in #1389
Stop
ColumnTypeScanType()from returningsql.RawBytesby @methane in #1424Exec() now provides access to status of multiple statements. by @mherr-google in #1309
Allow to change (or disable) the default driver name for registration by @dolmen in #1499
Add default connection attribute '_server_host' by @oblitorum in #1506
QueryUnescape DSN ConnectionAttribute value by @zhangyangyu in #1470
Add client_ed25519 authentication by @Gusted in #1518
Reduced allocation on connection.go by @EPuncker in #1421
Avoid panic in TestRowsColumnTypes by @wayyoungboy in #1426
Add benchmark to receive massive rows. by @methane in #1415
README: Update multistatement by @methane in #1431
all: replace ioutil pkg to new package by @uji in #1438
chore: code optimization by @testwill in #1439
Reduce map lookup in ColumnTypeDatabaseTypeName. by @methane in #1436
doc: add link to NewConnector from FormatDSN by @dolmen in #1442
Add fuzz test for ParseDSN / FormatDSN roundtrip by @dolmen in #1444
TestDSNReformat: add more roundtrip checks by @dolmen in #1443
tcp: handle errors returned by SetKeepAlive by @achille-roussel in #1448
use staticcheck by @methane in #1449
Add Daemonxiao to AUTHORS by @Daemonxiao in #1459
Update link about
LOAD DATA LOCALin README.md by @i7a7467 in #1468Update README.md by @Netzer7 in #1464
add Go 1.21 and MySQL 8.1 to the build matrix by @shogo82148 in #1472
Improve DSN docstsrings by @golddranks in #1475
Fix #1478 remove length check by @ShenFeng312 in #1481
README: fix markup error by @methane in #1480
Close connection on ErrPktSync and ErrPktSyncMul by @owbone in #1473
Spelling, grammar, and link fixes by @scop in #1485
Make use of strings.Cut by @scop in #1486
move stale connection check to ResetSession() by @methane in #1496
fix race condition of TestConcurrent by @shogo82148 in #1490
mark fail, mustExec and mustQuery as test helpers by @shogo82148 in #1488
Remove obsolete fuzz.go #1445 by @dolmen in #1498
testing: expose testing.TB in DBTest instead of full *testing.T by @dolmen in #1500
symbol removed from installation command by @panvalkar1994 in #1510
fix issue 1361 by @keeplearning20221 in #1462
fix fragile test by @methane in #1522
Fix sql.RawBytes corruption issue by @shogo82148 in #1523
fix for enum and set field type to column type identifying by @jennifersp in #1520
Parallelize test by @shogo82148 in #1525
Fix unsigned int overflow by @shiyuhang0 in #1530
Introduce
timeTruncateparameter fortime.Timearguments by @PauliusLozys in #1541add TiDB support in README.md by @crazycs520 in #1333
Update workflows by @methane in #1547
New Contributors
Full Changelog: go-sql-driver/mysql@v1.7.1...v1.8.0
v1.7.1Compare Source
What's Changed
New Contributors
Full Changelog: go-sql-driver/mysql@v1.7.0...v1.7.1
v1.7.0: Version 1.7Compare Source
Changes:
(*textRows).readRowin a more clear way (#1230)New Features:
Bugfixes:
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.