diff --git a/conn.go b/conn.go index 3ee0fe6b..51fab0e5 100644 --- a/conn.go +++ b/conn.go @@ -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 {