Ejemplo n.º 1
0
 /**
  * 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);
 }
Ejemplo n.º 3
0
 /**
  * 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;
     }
 }
Ejemplo n.º 4
0
 /**
  * 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;
     }
 }