Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: go-sql-driver/mysql

v1.9.3

13 Jun 06:21
@methane methane
62984ad
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Full Changelog: v1.9.2...v1.9.3

Contributors

methane
Assets 2
Loading
albertjoelbg, someone2080, evanelias, and waygamma reacted with thumbs up emoji
4 people reacted

v1.9.2

07 Apr 11:21
@methane methane
21ef4c6
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

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

Full Changelog: v1.9.1...v1.9.2

Loading
ahndmal and ylembot1 reacted with heart emoji
2 people reacted

v1.9.1

21 Mar 02:10
@methane methane
1fbafa8
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

New Contributors

Full Changelog: v1.9.0...v1.9.1

Contributors

methane and bogcon
Loading

v1.9.0

18 Feb 03:40
@methane methane
58941dd
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

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)

Full Changelog: v1.8.1...v1.9.0

New Contributors

Loading
atc0005 reacted with thumbs up emoji
1 person reacted

v1.8.1

26 Mar 14:35
@shogo82148 shogo82148
4395c45
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

Bugfixes:

  • fix race condition when context is canceled in #1562 and #1570

Full Changelog: v1.8.0...v1.8.1

Loading

v1.8.0

09 Mar 07:04
@methane methane
33b7747
This commit was created on GitHub.com and signed with GitHub’s verified signature.
GPG key ID: B5690EEEBB952194
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

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: v1.7.1...v1.8.0

Loading
ravarage, ahndmal, kevinmichaelchen, julienschmidt, siamakabi, and TIT8 reacted with thumbs up emoji hendriknielaender, koodimetsa, kevinmichaelchen, wanderingeek, julienschmidt, siamakabi, li1234yun, and artyom reacted with hooray emoji hendriknielaender, koodimetsa, jumoog, kevinmichaelchen, wanderingeek, julienschmidt, and siamakabi reacted with rocket emoji
12 people reacted

v1.7.1

25 Apr 10:04
@methane methane
f20b286
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

What's Changed

New Contributors

Full Changelog: v1.7.0...v1.7.1

Contributors

sjmudd, methane, and 4 other contributors
Loading
houseme, x1unix, piyushchauhan2011, Carpe-Wang, pgporada, beautifulentropy, and twz915 reacted with thumbs up emoji mcpherrinm, jcjones, and fenhole reacted with hooray emoji
10 people reacted

Version 1.7

02 Dec 11:44
@shogo82148 shogo82148
5cee457
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

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:

  • Fix parsing 0 year. (#1257)
Loading
atc0005, xhit, M1chlCZ, koodimetsa, anhnmt, zoltanbedi, jan-bar, Breezess, laelliang, and lxcshine reacted with hooray emoji
10 people reacted

Version 1.6.0

01 Apr 02:04
@shogo82148 shogo82148
bcc459a
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Major Release

  • Migrate the CI service from travis-ci to GitHub Actions (#1176, #1183, #1190)
  • NullTime is deprecated (#960, #1144)
  • Reduce allocations when building SET command (#1111)
  • Performance improvement for time formatting (#1118)
  • Performance improvement for time parsing (#1098, #1113)

See CHANGELOG.md for full details

Loading
aliakseiz, valentin-cochin, Oliverwqcwrw, dubyte, and atc0005 reacted with thumbs up emoji
5 people reacted

Version 1.5.0

07 Jan 16:37
@julienschmidt julienschmidt
17ef3dd
This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
GPG key ID: 4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.
Compare
Choose a tag to compare
Loading

Major Release

  • Added Go Module support
  • Dropped support for Go 1.9 and lower
  • Implemented Connector interface
  • Improved buffering
  • Added connection liveness check
  • Improved marking of bad connnections
  • Updated collations and made utf8mb4 default
  • Made mysql.NullTime compatible with sql.NullTime
  • Removed support for CloudSQL via appengine/cloudsql

See CHANGELOG.md for full details

Loading
yovenchen reacted with thumbs up emoji
1 person reacted
Previous 1 3
Previous

AltStyle によって変換されたページ (->オリジナル) /