Update module github.com/go-sql-driver/mysql to v1.8.1 #7

Open
renovate-bot wants to merge 1 commits from renovate/github.com-go-sql-driver-mysql-1.x into master
Collaborator

This PR contains the following updates:

Package Type Update Change
github.com/go-sql-driver/mysql require minor v1.7.1 -> v1.8.1

Release Notes

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

v1.8.1

Compare Source

What's Changed

Bugfixes:

Full Changelog: https://github.com/go-sql-driver/mysql/compare/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 https://github.com/go-sql-driver/mysql/pull/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 https://github.com/go-sql-driver/mysql/pull/1432

    • This is backward incompatible in rare case. Check your DSN.
  • Drop Go 1.13-17 support by @​methane in https://github.com/go-sql-driver/mysql/pull/1420

    • Use Go 1.18+
  • Parse numbers on text protocol too by @​methane in https://github.com/go-sql-driver/mysql/pull/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: https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0


Configuration

📅 Schedule: 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 has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) | require | minor | `v1.7.1` -> `v1.8.1` | --- ### Release Notes <details> <summary>go-sql-driver/mysql (github.com/go-sql-driver/mysql)</summary> ### [`v1.8.1`](https://github.com/go-sql-driver/mysql/releases/tag/v1.8.1) [Compare Source](https://github.com/go-sql-driver/mysql/compare/v1.8.0...v1.8.1) #### What's Changed Bugfixes: - fix race condition when context is canceled in [#&#8203;1562](https://github.com/go-sql-driver/mysql/pull/1562) and [#&#8203;1570](https://github.com/go-sql-driver/mysql/pull/1570) **Full Changelog**: https://github.com/go-sql-driver/mysql/compare/v1.8.0...v1.8.1 ### [`v1.8.0`](https://github.com/go-sql-driver/mysql/releases/tag/v1.8.0) [Compare Source](https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0) #### What's Changed #### Major changes - Use `SET NAMES charset COLLATE collation`. by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/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 [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1432 - This is backward incompatible in rare case. Check your DSN. - Drop Go 1.13-17 support by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1420 - Use Go 1.18+ - Parse numbers on text protocol too by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/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. - Make TimeTruncate functional option by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1552 - Add BeforeConnect callback to configuration object by [@&#8203;ItalyPaleAle](https://github.com/ItalyPaleAle) in https://github.com/go-sql-driver/mysql/pull/1469 ##### Other changes - Adding DeregisterDialContext to prevent memory leaks with dialers we don't need anymore by [@&#8203;jypelle](https://github.com/jypelle) in https://github.com/go-sql-driver/mysql/pull/1422 - Make logger configurable per connection by [@&#8203;frozenbonito](https://github.com/frozenbonito) in https://github.com/go-sql-driver/mysql/pull/1408 - Fix ColumnType.DatabaseTypeName for mediumint unsigned by [@&#8203;evanelias](https://github.com/evanelias) in https://github.com/go-sql-driver/mysql/pull/1428 - Add connection attributes by [@&#8203;Daemonxiao](https://github.com/Daemonxiao) in https://github.com/go-sql-driver/mysql/pull/1389 - Stop `ColumnTypeScanType()` from returning `sql.RawBytes` by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1424 - Exec() now provides access to status of multiple statements. by [@&#8203;mherr-google](https://github.com/mherr-google) in https://github.com/go-sql-driver/mysql/pull/1309 - Allow to change (or disable) the default driver name for registration by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1499 - Add default connection attribute '\_server_host' by [@&#8203;oblitorum](https://github.com/oblitorum) in https://github.com/go-sql-driver/mysql/pull/1506 - QueryUnescape DSN ConnectionAttribute value by [@&#8203;zhangyangyu](https://github.com/zhangyangyu) in https://github.com/go-sql-driver/mysql/pull/1470 - Add client_ed25519 authentication by [@&#8203;Gusted](https://github.com/Gusted) in https://github.com/go-sql-driver/mysql/pull/1518 - Reduced allocation on connection.go by [@&#8203;EPuncker](https://github.com/EPuncker) in https://github.com/go-sql-driver/mysql/pull/1421 - Avoid panic in TestRowsColumnTypes by [@&#8203;wayyoungboy](https://github.com/wayyoungboy) in https://github.com/go-sql-driver/mysql/pull/1426 - Add benchmark to receive massive rows. by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1415 - README: Update multistatement by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1431 - all: replace ioutil pkg to new package by [@&#8203;uji](https://github.com/uji) in https://github.com/go-sql-driver/mysql/pull/1438 - chore: code optimization by [@&#8203;testwill](https://github.com/testwill) in https://github.com/go-sql-driver/mysql/pull/1439 - Reduce map lookup in ColumnTypeDatabaseTypeName. by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1436 - doc: add link to NewConnector from FormatDSN by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1442 - Add fuzz test for ParseDSN / FormatDSN roundtrip by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1444 - TestDSNReformat: add more roundtrip checks by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1443 - tcp: handle errors returned by SetKeepAlive by [@&#8203;achille-roussel](https://github.com/achille-roussel) in https://github.com/go-sql-driver/mysql/pull/1448 - use staticcheck by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1449 - Add Daemonxiao to AUTHORS by [@&#8203;Daemonxiao](https://github.com/Daemonxiao) in https://github.com/go-sql-driver/mysql/pull/1459 - Update link about `LOAD DATA LOCAL` in README.md by [@&#8203;i7a7467](https://github.com/i7a7467) in https://github.com/go-sql-driver/mysql/pull/1468 - Update README.md by [@&#8203;Netzer7](https://github.com/Netzer7) in https://github.com/go-sql-driver/mysql/pull/1464 - add Go 1.21 and MySQL 8.1 to the build matrix by [@&#8203;shogo82148](https://github.com/shogo82148) in https://github.com/go-sql-driver/mysql/pull/1472 - Improve DSN docstsrings by [@&#8203;golddranks](https://github.com/golddranks) in https://github.com/go-sql-driver/mysql/pull/1475 - Fix [#&#8203;1478](https://github.com/go-sql-driver/mysql/issues/1478) remove length check by [@&#8203;ShenFeng312](https://github.com/ShenFeng312) in https://github.com/go-sql-driver/mysql/pull/1481 - README: fix markup error by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1480 - Close connection on ErrPktSync and ErrPktSyncMul by [@&#8203;owbone](https://github.com/owbone) in https://github.com/go-sql-driver/mysql/pull/1473 - Spelling, grammar, and link fixes by [@&#8203;scop](https://github.com/scop) in https://github.com/go-sql-driver/mysql/pull/1485 - Make use of strings.Cut by [@&#8203;scop](https://github.com/scop) in https://github.com/go-sql-driver/mysql/pull/1486 - move stale connection check to ResetSession() by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1496 - fix race condition of TestConcurrent by [@&#8203;shogo82148](https://github.com/shogo82148) in https://github.com/go-sql-driver/mysql/pull/1490 - mark fail, mustExec and mustQuery as test helpers by [@&#8203;shogo82148](https://github.com/shogo82148) in https://github.com/go-sql-driver/mysql/pull/1488 - Remove obsolete fuzz.go [#&#8203;1445](https://github.com/go-sql-driver/mysql/issues/1445) by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1498 - testing: expose testing.TB in DBTest instead of full \*testing.T by [@&#8203;dolmen](https://github.com/dolmen) in https://github.com/go-sql-driver/mysql/pull/1500 - symbol removed from installation command by [@&#8203;panvalkar1994](https://github.com/panvalkar1994) in https://github.com/go-sql-driver/mysql/pull/1510 - fix issue 1361 by [@&#8203;keeplearning20221](https://github.com/keeplearning20221) in https://github.com/go-sql-driver/mysql/pull/1462 - fix fragile test by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1522 - Fix sql.RawBytes corruption issue by [@&#8203;shogo82148](https://github.com/shogo82148) in https://github.com/go-sql-driver/mysql/pull/1523 - fix for enum and set field type to column type identifying by [@&#8203;jennifersp](https://github.com/jennifersp) in https://github.com/go-sql-driver/mysql/pull/1520 - Parallelize test by [@&#8203;shogo82148](https://github.com/shogo82148) in https://github.com/go-sql-driver/mysql/pull/1525 - Fix unsigned int overflow by [@&#8203;shiyuhang0](https://github.com/shiyuhang0) in https://github.com/go-sql-driver/mysql/pull/1530 - Introduce `timeTruncate` parameter for `time.Time` arguments by [@&#8203;PauliusLozys](https://github.com/PauliusLozys) in https://github.com/go-sql-driver/mysql/pull/1541 - add TiDB support in README.md by [@&#8203;crazycs520](https://github.com/crazycs520) in https://github.com/go-sql-driver/mysql/pull/1333 - Update workflows by [@&#8203;methane](https://github.com/methane) in https://github.com/go-sql-driver/mysql/pull/1547 #### New Contributors - [@&#8203;EPuncker](https://github.com/EPuncker) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1421 - [@&#8203;jypelle](https://github.com/jypelle) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1422 - [@&#8203;frozenbonito](https://github.com/frozenbonito) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1408 - [@&#8203;wayyoungboy](https://github.com/wayyoungboy) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1426 - [@&#8203;evanelias](https://github.com/evanelias) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1428 - [@&#8203;Daemonxiao](https://github.com/Daemonxiao) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1389 - [@&#8203;uji](https://github.com/uji) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1438 - [@&#8203;testwill](https://github.com/testwill) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1439 - [@&#8203;i7a7467](https://github.com/i7a7467) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1468 - [@&#8203;Netzer7](https://github.com/Netzer7) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1464 - [@&#8203;golddranks](https://github.com/golddranks) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1475 - [@&#8203;ShenFeng312](https://github.com/ShenFeng312) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1481 - [@&#8203;owbone](https://github.com/owbone) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1473 - [@&#8203;scop](https://github.com/scop) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1485 - [@&#8203;panvalkar1994](https://github.com/panvalkar1994) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1510 - [@&#8203;zhangyangyu](https://github.com/zhangyangyu) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1470 - [@&#8203;keeplearning20221](https://github.com/keeplearning20221) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1462 - [@&#8203;oblitorum](https://github.com/oblitorum) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1506 - [@&#8203;Gusted](https://github.com/Gusted) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1518 - [@&#8203;jennifersp](https://github.com/jennifersp) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1520 - [@&#8203;shiyuhang0](https://github.com/shiyuhang0) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1530 - [@&#8203;PauliusLozys](https://github.com/PauliusLozys) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1541 - [@&#8203;crazycs520](https://github.com/crazycs520) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1333 - [@&#8203;ItalyPaleAle](https://github.com/ItalyPaleAle) made their first contribution in https://github.com/go-sql-driver/mysql/pull/1469 **Full Changelog**: https://github.com/go-sql-driver/mysql/compare/v1.7.1...v1.8.0 </details> --- ### Configuration 📅 **Schedule**: 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMjUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4zIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
renovate-bot changed title from Update module github.com/go-sql-driver/mysql to v1.8.0 to Update module github.com/go-sql-driver/mysql to v1.8.1 2024-03-26 15:06:44 +00:00
renovate-bot force-pushed renovate/github.com-go-sql-driver-mysql-1.x from f7f6f30170 to 8e289196c9 2024-03-26 15:06:45 +00:00 Compare
This repo is archived. You cannot comment on pull requests.
No reviewers
No Label
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: teach/chunkvalidator#7
No description provided.