Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0b4

Request #11802 Methods to check connection status and busy
Submitted: 2007-08-09 01:27 UTC
From: pberry Assigned:
Status: Open Package: MDB2_Driver_pgsql (version 1.4.1)
PHP Version: Irrelevant OS: N/A
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 18 - 9 = ?

 
 [2007-08-09 01:27 UTC] pberry (Phil Berry)
Description: ------------ Neither the driver or MDB2 contains a way to manually check if a connection is still active and whether or not it's busy. Two methods that I've added to MDB2_Driver_pgsql are connectionIsBusy() and pingConnection(), it would be nice if these or something similar could be rolled into main. Test script: --------------- function connectionIsBusy(){ if(pg_connection_busy($this->connection)){ return TRUE ; } } function pingConnection(){ if(pg_connection_status($this->connection) === PGSQL_CONNECTION_OK){ return TRUE ; } }

Comments