mirror of
https://gitee.com/gitea/gitea
synced 2025-11-07 01:50:26 +08:00
2
vendor/github.com/lib/pq/conn_go18.go
generated
vendored
2
vendor/github.com/lib/pq/conn_go18.go
generated
vendored
@@ -79,7 +79,7 @@ func (cn *conn) Ping(ctx context.Context) error {
|
||||
if finish := cn.watchCancel(ctx); finish != nil {
|
||||
defer finish()
|
||||
}
|
||||
rows, err := cn.simpleQuery("SELECT 'lib/pq ping test';")
|
||||
rows, err := cn.simpleQuery(";")
|
||||
if err != nil {
|
||||
return driver.ErrBadConn // https://golang.org/pkg/database/sql/driver/#Pinger
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user