Skip to content

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

renovate requested to merge renovate/github.com-go-sql-driver-mysql-1.x into master

This MR contains the following updates:

Package Type Update Change
github.com/go-sql-driver/mysql require minor v1.7.0 -> 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

v1.7.1

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/go-sql-driver/mysql/compare/v1.7.0...v1.7.1


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 MR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This MR has been generated by Renovate Bot.

Edited by renovate

Merge request reports

Loading