Skip to content

Commit

Permalink
Merge 81d72fc into 0fd83bb
Browse files Browse the repository at this point in the history
  • Loading branch information
hzliangbin committed Jun 20, 2022
2 parents 0fd83bb + 81d72fc commit bc2a185
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sql/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ func (db *DB) TestConn() error {
if err != nil {
return err
}
defer db.pool.Put(r)
conn := r.(*driver.BackendConnection)
return conn.Ping(context.Background())
}

0 comments on commit bc2a185

Please sign in to comment.