Ping implemented in terms of PingContext

context
Jack Christensen 2017-02-11 18:44:39 -06:00
parent 8cc480fc48
commit 9c74626d22
1 changed files with 1 additions and 2 deletions

View File

@ -1385,8 +1385,7 @@ func (c *Conn) cancelQuery() error {
}
func (c *Conn) Ping() error {
_, err := c.Exec(";")
return err
return c.PingContext(context.Background())
}
func (c *Conn) PingContext(ctx context.Context) error {