/**
  * Resume a previous Session and ResultSet
  *
  * @access public
  * @param  array $aParams
  * @return mixed   object or bool
  */
 function resumeResultSet($aParams)
 {
     if (!$this->conn_id) {
         $this->initialize();
     }
     if ($this->curs_id == '') {
         $this->getCursor();
     }
     $oResult = new CI_DB_sqlrelay_result();
     $oResult->curs_id = $this->curs_id;
     $oResult->conn_id = $this->conn_id;
     sqlrcon_resumeSession($this->conn_id, $aParams['iPortId'], $aParams['iSocketId']);
     if (sqlrcur_resumeResultSet($this->curs_id, $aParams['iResultSetId'])) {
         return $oResult;
     } else {
         return false;
     }
 }
 /**
  * Resume a previous record set suspended
  *
  * @access public
  * @param  integer $curRef
  * @return bool
  */
 function resumeResult($curRef)
 {
     if (sqlrcur_resumeResultSet($curRef)) {
         return true;
     } else {
         if ($this->db_debug) {
             log_message('error', 'Driver Db_sqlrelay ' . "\t" . 'Method resumeResult ' . "\n\t\t" . 'Unable to resume result.' . PHP_EOL . " Connexion data " . PHP_EOL . " username : "******" hostname : " . $this->hostname . PHP_EOL . " database : " . $this->database . PHP_EOL . " dbdriver : " . $this->dbdriver . PHP_EOL . " dbprefix : " . $this->dbprefix . PHP_EOL . " port     : " . $this->port);
             return $this->display_error('db_unable_to_resume_result', var_export($curRef, true));
         }
         return false;
     }
     return;
 }