Skip to content

Commit

Permalink
Revert "Implement driver.Validator interface (go-sql-driver#1174)"
Browse files Browse the repository at this point in the history
This reverts commit 3326742.
  • Loading branch information
jsha committed May 20, 2021
1 parent de1da0a commit 8e3eb81
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,3 @@ func (mc *mysqlConn) ResetSession(ctx context.Context) error {
mc.reset = true
return nil
}

// IsValid implements driver.Validator interface
// (From Go 1.15)
func (mc *mysqlConn) IsValid() bool {
return !mc.closed.IsSet()
}

0 comments on commit 8e3eb81

Please sign in to comment.