Ping implemented in terms of PingContext
This commit is contained in:
@@ -1385,8 +1385,7 @@ func (c *Conn) cancelQuery() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Conn) Ping() error {
|
func (c *Conn) Ping() error {
|
||||||
_, err := c.Exec(";")
|
return c.PingContext(context.Background())
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Conn) PingContext(ctx context.Context) error {
|
func (c *Conn) PingContext(ctx context.Context) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user