Skip to content

Commit 8a327a3

Browse files
authored
Drop support of go1.19 (#1558)
* drop support of Go 1.19 * replace atomicBool by atomic.Bool * Update Go and MariaDB versions in README.md
1 parent 3147497 commit 8a327a3

File tree

6 files changed

+5
-141
lines changed

6 files changed

+5
-141
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac
4141

4242
## Requirements
4343

44-
* Go 1.19 or higher. We aim to support the 3 latest versions of Go.
45-
* MySQL (5.7+) and MariaDB (10.3+) are supported.
44+
* Go 1.20 or higher. We aim to support the 3 latest versions of Go.
45+
* MySQL (5.7+) and MariaDB (10.5+) are supported.
4646
* [TiDB](https://github.com/pingcap/tidb) is supported by PingCAP.
4747
* Do not ask questions about TiDB in our issue tracker or forum.
4848
* [Document](https://docs.pingcap.com/tidb/v6.1/dev-guide-sample-application-golang)

atomic_bool.go

-19
This file was deleted.

atomic_bool_go118.go

-47
This file was deleted.

atomic_bool_test.go

-71
This file was deleted.

connection.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
"net"
1818
"strconv"
1919
"strings"
20+
"sync/atomic"
2021
"time"
2122
)
2223

@@ -41,7 +42,7 @@ type mysqlConn struct {
4142
closech chan struct{}
4243
finished chan<- struct{}
4344
canceled atomicError // set non-nil if conn is canceled
44-
closed atomicBool // set when conn is closed, before closech is closed
45+
closed atomic.Bool // set when conn is closed, before closech is closed
4546
}
4647

4748
// Handles parameters set in DSN after the connection is established

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module github.com/go-sql-driver/mysql
22

3-
go 1.18
3+
go 1.20
44

55
require filippo.io/edwards25519 v1.1.0

0 commit comments

Comments
 (0)