/** * Select the database * * @access private called by the base class * @return resource */ function db_select() { // In CUBRID there is no need to select a database as the database // is chosen at the connection time. // So, to determine if the database is "selected", all we have to // do is ping the server and return that value. return cubrid_ping($this->conn_id); }
function db_select() { return cubrid_ping($this->conn_id); }
/** * Reconnect * * Keep / reestablish the db connection if no queries have been * sent for a length of time exceeding the server's idle timeout * * @return void */ public function reconnect() { if (cubrid_ping($this->conn_id) === FALSE) { $this->conn_id = FALSE; } }
/** * Reconnect. * * Keep / reestablish the db connection if no queries have been * sent for a length of time exceeding the server's idle timeout * * @return void */ public function reconnect() { if (cubrid_ping($this->conn_id) === false) { $this->conn_id = false; } }