Committed by Greg Sabino Mullane <[email protected]>

Subject: [DBD::Pg 1/2] Tweak the ping() method docs some.

---
 Pg.pm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/Pg.pm b/Pg.pm
index 831d768..5bce425 100644
--- a/Pg.pm
+++ b/Pg.pm
@@ -2738,9 +2738,11 @@ server version 9.0 or higher.
 
   $rv = $dbh->ping;
 
-This C<ping> method is used to check the validity of a database handle. The 
value returned is 
-either 0, indicating that the connection is no longer valid, or a positive 
integer, indicating 
-the following:
+The C<ping> method determines if there is a working connection to an active 
+database server. It does this by sending a small query to the server, 
currently 
+B<SELECT 'DBD::Pg ping test'>. It returns 0 (false) if the connection is not 
valid, 
+otherwise it returns a positive number (true). The value returned indicates 
the 
+current state:
 
   Value    Meaning
   --------------------------------------------------
-- 
1.8.4

Reply via email to