Skip to content

Commit

Permalink
Drop support of go1.19 (#1558)
Browse files Browse the repository at this point in the history
* drop support of Go 1.19

* replace atomicBool by atomic.Bool

* Update Go and MariaDB versions in README.md
  • Loading branch information
shogo82148 authored Mar 11, 2024
1 parent 3147497 commit 8a327a3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 141 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ A MySQL-Driver for Go's [database/sql](https://golang.org/pkg/database/sql/) pac

## Requirements

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

This file was deleted.

47 changes: 0 additions & 47 deletions atomic_bool_go118.go

This file was deleted.

71 changes: 0 additions & 71 deletions atomic_bool_test.go

This file was deleted.

3 changes: 2 additions & 1 deletion connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"net"
"strconv"
"strings"
"sync/atomic"
"time"
)

Expand All @@ -41,7 +42,7 @@ type mysqlConn struct {
closech chan struct{}
finished chan<- struct{}
canceled atomicError // set non-nil if conn is canceled
closed atomicBool // set when conn is closed, before closech is closed
closed atomic.Bool // set when conn is closed, before closech is closed
}

// Handles parameters set in DSN after the connection is established
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/go-sql-driver/mysql

go 1.18
go 1.20

require filippo.io/edwards25519 v1.1.0

0 comments on commit 8a327a3

Please sign in to comment.