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.
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.
fix race condition when context is canceled in #1562 and #1570
Version 1.8.0 (2024-03-09)
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.
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 variable.
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 negatable.
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 @methane in 1552
Add BeforeConnect callback to configuration object by @ItalyPaleAle in #1469
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the all group with 11 updates:
1.8.1
1.9.1
0.0.6
1.0.0
0.0.1
1.1.1
1.7.1
1.8.1
5.2.0
5.2.1
1.0.0
1.0.1
1.8.4
1.9.0
0.18.0
0.21.0
0.20.0
0.22.0
0.16.0
0.18.0
1.28.0
1.29.5
Updates
github.com/PuerkitoBio/goquery
from 1.8.1 to 1.9.1Release notes
Sourced from github.com/PuerkitoBio/goquery's releases.
Commits
3ce7428
Prepare new minor version153f1ea
Add notes on cascadia behavior that may differ from jQuery`s2095230
Merge pull request #469 from jwilsson/pre-allocate-slice-in-mapce7330a
Pre-allocate slice in generic Map function4cbe087
Update dependenciesa475435
Prepare README for the new version86d2456
Update CI to run Go 1.21 and 1.22 (latest 2 versions at the moment)1fad3d4
Implement Selection.Map by calling the generic Mapde2d209
Merge pull request #467 from Fesaa/feature/generics65c0ed3
Impl PuerkitoBio/goquery#466Updates
github.com/gin-contrib/requestid
from 0.0.6 to 1.0.0Release notes
Sourced from github.com/gin-contrib/requestid's releases.
Commits
ea228bd
ci: update GitHub Actions configurations8344ce4
doc: get request_id from header (#38)9b19025
chore: update third-party dependencies to latest versions537ec79
ci: update GitHub Actions workflow to use codeql-action/init@v3f4afe99
chore: update GitHub actions for Go and Goreleaser workflows67e4044
chore: update GitHub Actions versions in workflow files1f11bdc
chore: update dependencies to latest versions93c0bc4
chore: update GitHub Actions configuration files34e125b
chore: update dependencies to latest versions7167296
chore: update supported versions of Go to include 1.21Updates
github.com/gin-contrib/static
from 0.0.1 to 1.1.1Release notes
Sourced from github.com/gin-contrib/static's releases.
... (truncated)
Commits
1bfc746
chore: update external dependencies to latest versions21b6603
style: refactor tests and update CI configurations6e6360c
test: refactor tests and cleanup imports9f124f7
chore: refactor example directory structuree3221e7
test: improve reliability of file operationsacf41a9
feat: enhance static file serving capabilities45b3e72
fix(lint): should be written without leading spacead4c6b0
chore: refactor Lint Configuration for Go Projectf07e37c
chore: update dependencies and Go version48e0d07
ci: update Go versions and CI workflowsUpdates
github.com/go-sql-driver/mysql
from 1.7.1 to 1.8.1Release notes
Sourced from github.com/go-sql-driver/mysql's releases.
... (truncated)
Changelog
Sourced from github.com/go-sql-driver/mysql's changelog.
Commits
4395c45
update changelog for releasing v1.8.1 (#1576)7eeaba6
Fix issue 1567 (#1570) (#1571)65395d8
fix race condition when context is canceled (#1565)1e75613
add wrapper method to call mc.cfg.Logger (#1564)33fa6e5
replace interface{} with any (#1561)33b7747
Add BeforeConnect callback to configuration object (#1469)6964272
Make TimeTruncate functional option (#1552)097fe6e
Update workflows (#1547)f019727
add TiDB support in README.md (#1333)743e263
IntroducetimeTruncate
parameter fortime.Time
arguments (#1541)Updates
github.com/golang-jwt/jwt/v5
from 5.2.0 to 5.2.1Release notes
Sourced from github.com/golang-jwt/jwt/v5's releases.
Commits
80dccb9
Bump golangci/golangci-lint-action from 3 to 4 (#379)6bcdd9d
Fix error return from HMAC signing method (#371)3c0777d
Fixes typo in ecdsa error message (#373)4d0edcd
chore: remove unnecessary conversions from tests (#370)9980931
Bump github/codeql-action from 2 to 3 (#369)8ab6606
Bump actions/setup-go from 4 to 5 (#365)Updates
github.com/sethvargo/go-envconfig
from 1.0.0 to 1.0.1Release notes
Sourced from github.com/sethvargo/go-envconfig's releases.
Commits
bec89e0
Update deps (#104)Updates
github.com/stretchr/testify
from 1.8.4 to 1.9.0Release notes
Sourced from github.com/stretchr/testify's releases.
... (truncated)
Commits
bb548d0
Merge pull request #1552 from stretchr/dependabot/go_modules/github.com/stret...814075f
build(deps): bump github.com/stretchr/objx from 0.5.1 to 0.5.2e045612
Merge pull request #1339 from bogdandrutu/uintptr5b6926d
Merge pull request #1385 from hslatman/not-implements9f97d67
Merge pull request #1550 from stretchr/release-notesbcb0d3f
Include the auto-release notes in releasesfb770f8
Merge pull request #1247 from ccoVeille/typos85d8bb6
fix typos in comments, tests and github templatese2741fa
Merge pull request #1548 from arjunmahishi/msgAndArgs6e59f20
http_assertions: assert that the msgAndArgs actually works in testsUpdates
golang.org/x/crypto
from 0.18.0 to 0.21.0Commits
7067223
go.mod: update golang.org/x dependencies0d2316b
ssh/test: work around for TestCiphers failures on macOS0aab8d0
all: update go.mod x/net dependency5bead59
ocsp: don't use iota for externally defined constants1a86580
x/crypto/internal/poly1305: improve sum_ppc64le.s1c981e6
ssh/test: don't use DSA keys in integrations tests, update test RSA key62c9f17
x509roots/nss: manually exclude a confusingly constrained root405cb3b
go.mod: update golang.org/x dependencies913d3ae
x509roots/fallback: update bundleUpdates
golang.org/x/net
from 0.20.0 to 0.22.0Commits
7ee34a0
go.mod: update golang.org/x dependenciesc289c7a
websocket: re-add documentation for DialConfig9fb4a8c
http2: send an error of FLOW_CONTROL_ERROR when exceed the maximum octets3dfd003
websocket: add support for dialing with contextfa11427
quic: move package out of internal591be7f
quic: fix UDP on big-endian Linux, tests on various architectures34cc446
quic: temporarily disable networking tests failing on various platforms4bdc6df
quic: expand package docs, and document Stream22cbde9
quic: set ServerName in client connection TLSConfig57e4cc7
quic: handle PATH_CHALLENGE and PATH_RESPONSE framesUpdates
golang.org/x/term
from 0.16.0 to 0.18.0Commits
c5eaf76
go.mod: update golang.org/x dependencies353276a
go.mod: update golang.org/x dependenciesUpdates
modernc.org/sqlite
from 1.28.0 to 1.29.5Commits
569f768
fix builder.json0c6d7f8
add HACKING, builder.json /20352b52
add HACKING, builder.json, updates #178c6a8365
retract v1.29.4, builders have not yet tested the commitbcde811
Merge branch 'ensure-statement-pointer-finalized' into 'master'37bb58f
[bugfix] ensure statement pointers finalized1c9d087
doc.go: add a note about libc versions, closes #1773605b1b
Makefile: adjust the build_all_targets target, updates #177f293f7f
vendor libsqlite3@v1.1.0, closes #173f49aba7
skip recursive -race test on unsupported targets /4Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show