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  


 [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