Extracted from Pike v8.0 release 28 as of 2015-08-03.
   

Method Sql.Sql()->ping()


Method ping

int ping()

Description

Check whether the connection is alive.

Returns

Returns one of the following:

0

Everything ok.

1

The connection reconnected automatically.

-1

The server has gone away, and the connection is dead.


See also

is_open()