Skip to content

Commit bcb07a6

Browse files
authored
Merge branch 'master' into dterry/durablebinlogs
2 parents c7a3c17 + a9f9c23 commit bcb07a6

File tree

4 files changed

+37
-5
lines changed

4 files changed

+37
-5
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
### Tag v1.9.1 (2024-09-12)
2+
* Fix can't connect to MySQL 8.0 with long password. [#914](https://github.com/go-mysql-org/go-mysql/pull/914) ([lance6716](https://github.com/lance6716))
3+
* Fix actual master and add -race in CI. [#907](https://github.com/go-mysql-org/go-mysql/pull/907) ([atercattus](https://github.com/atercattus))
4+
* export EventCacheCount on Canal Config. [#913](https://github.com/go-mysql-org/go-mysql/pull/913) ([tomwei7](https://github.com/tomwei7))
5+
* FIX:The problem of the ignoreTables parameter not taking effect in the go-mysqldump package. [#910](https://github.com/go-mysql-org/go-mysql/pull/910) ([liuhuanxg](https://github.com/liuhuanxg))
6+
* fixing [email protected] errors of current build [#912](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
7+
* Handle null index column names in sql.DB loader [#904](https://github.com/go-mysql-org/go-mysql/pull/) ([shauns](https://github.com/shauns))
8+
* Add DisableFlushBinlogWhileWaiting config and almost every query event triggers OnPosSynced [#900](https://github.com/go-mysql-org/go-mysql/pull/) ([morgo](https://github.com/morgo))
9+
* allow disabling the default golang database/sql retry behavior [#899](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
10+
* fix(canal): do not ignore events with LogPos=0, use timestamp to distinguish fake rotate events [#894](https://github.com/go-mysql-org/go-mysql/pull/) ([mefcorvi](https://github.com/mefcorvi))
11+
* allow packet.Conn buffer size to be adjustable [#892](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
12+
* time column type string formatting and test coverage [#891](https://github.com/go-mysql-org/go-mysql/pull/) ([jnewmano](https://github.com/jnewmano))
13+
* Support DSN without 'user:password@' [#888](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
14+
* add support for driver.NamedValueChecker on driver connection [#887](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
15+
* Additional Driver args for compression and connection read/write timeouts [#885](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
16+
* reduce memory allocations when zlib compression is enabled [#880](https://github.com/go-mysql-org/go-mysql/pull/) ([dvilaverde](https://github.com/dvilaverde))
17+
* Fix no table is replicated when excludeTableRegex is set while includeTableRegex is nil [#874](https://github.com/go-mysql-org/go-mysql/pull/) ([gaojijun](https://github.com/gaojijun))
18+
* Make protocol version check more strict [#878](https://github.com/go-mysql-org/go-mysql/pull/) ([dveeden](https://github.com/dveeden))
19+
120
### Tag v1.8.0 (2024-05-10)
221
* Fix bug in handling sub events of replication.TransactionPayloadEvent. [#875](https://github.com/go-mysql-org/go-mysql/pull/875) ([froot](https://github.com/froot))
322
* CI: Add tests for various MySQL versions. [#870](https://github.com/go-mysql-org/go-mysql/pull/870) ([dveeden](https://github.com/dveeden))

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ A pure go library to handle MySQL network protocol and replication.
99
## How to migrate to this repo
1010
To change the used package in your repo it's enough to add this `replace` directive to your `go.mod`:
1111
```
12-
replace github.com/siddontang/go-mysql => github.com/go-mysql-org/go-mysql v1.8.0
12+
replace github.com/siddontang/go-mysql => github.com/go-mysql-org/go-mysql v1.9.0
1313
```
1414

15-
v1.8.0 - is the last tag in repo, feel free to choose what you want.
15+
v1.9.0 - is the last tag in repo, feel free to choose what you want.
1616

1717
## Changelog
1818
This repo uses [Changelog](CHANGELOG.md).

client/auth.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ func (c *Conn) readInitialHandshake() error {
115115
// the first packet *must* have at least 20 bytes of a scramble.
116116
// if a plugin provided less, we pad it to 20 with zeros
117117
rest := int(authPluginDataLen) - 8
118-
if max := 12 + 1; rest < max {
119-
rest = max
118+
if rest < 13 {
119+
rest = 13
120120
}
121121

122-
authPluginDataPart2 := data[pos : pos+rest]
122+
authPluginDataPart2 := data[pos : pos+rest-1]
123123
pos += rest
124124

125125
c.salt = append(c.salt, authPluginDataPart2...)

client/client_test.go

+13
Original file line numberDiff line numberDiff line change
@@ -526,3 +526,16 @@ INSERT INTO field_value_test VALUES (
526526
require.Equal(s.T(), expected[i], v.String())
527527
}
528528
}
529+
530+
func (s *clientTestSuite) TestLongPassword() {
531+
_, err := s.c.Execute("DROP USER IF EXISTS 'test_long_password'@'%'")
532+
require.NoError(s.T(), err)
533+
_, err = s.c.Execute("CREATE USER 'test_long_password'@'%' IDENTIFIED BY '12345678901234567890'")
534+
require.NoError(s.T(), err)
535+
536+
addr := fmt.Sprintf("%s:%s", *test_util.MysqlHost, s.port)
537+
c, err := Connect(addr, "test_long_password", "12345678901234567890", "")
538+
require.NoError(s.T(), err)
539+
err = c.Close()
540+
require.NoError(s.T(), err)
541+
}

0 commit comments

Comments
 (0)