public function fetch($style = null, $orientation = null, $offset = null)
    {
        set_error_handler(array($this->_pdooci,"errorHandler"));
        try {
            $style = is_null($style) ? $this->_fetch_sty : $style;
            $this->_fetch_sty = $style;
            $rst   = null;

            switch ($style)
            {
            case \PDO::FETCH_BOTH:
            case \PDO::FETCH_BOUND:
                $rst = \oci_fetch_array($this->_stmt, \OCI_BOTH + \OCI_RETURN_NULLS);
                break;
            case \PDO::FETCH_ASSOC:
                $rst = \oci_fetch_array($this->_stmt, \OCI_ASSOC + \OCI_RETURN_NULLS);
                $rst = $this->_fixResultKeys($rst);
                break;
            case \PDO::FETCH_NUM:
                $rst = \oci_fetch_array($this->_stmt, \OCI_NUM + \OCI_RETURN_NULLS);
                break;
            case \PDO::FETCH_OBJ:
                $rst = \oci_fetch_object($this->_stmt);
                break;
            }
            $this->_current = $rst;
            $this->_checkBinds();
        } catch (\Exception $e) {
            throw new \PDOException($e->getMessage());
        }
        restore_error_handler();
        return $rst;
    }
public function fetch($style = null, $orientation = null, $offset = null)
    {
        set_error_handler(array($this->_pdooci,"errorHandler"));
        try {
            $style = is_null($style) ? $this->_fetch_sty : $style;
            $this->_fetch_sty = $style;
            $rst   = null;

            switch ($style)
            {
            case \PDO::FETCH_BOTH:
            case \PDO::FETCH_BOUND:
                $rst = \oci_fetch_array($this->_stmt, \OCI_BOTH + \OCI_RETURN_NULLS);
                break;
            case \PDO::FETCH_ASSOC:
                $rst = \oci_fetch_array($this->_stmt, \OCI_ASSOC + \OCI_RETURN_NULLS);
                $rst = $this->_fixResultKeys($rst);
                break;
            case \PDO::FETCH_NUM:
                $rst = \oci_fetch_array($this->_stmt, \OCI_NUM + \OCI_RETURN_NULLS);
                break;
            case \PDO::FETCH_OBJ:
                $rst = \oci_fetch_object($this->_stmt);
                break;
            }
            $this->_current = $rst;
            $this->_checkBinds();
        } catch (\Exception $e) {
            throw new \PDOException($e->getMessage());
        }
        restore_error_handler();
        return $rst;
    }
public function fetch ( $ style = null , $ orientation = null , $ offset = null ) { set_error_handler ( array ( $ this -> _pdooci , "errorHandler" ) ) ; try { $ style = is_null ( $ style ) ? $ this -> _fetch_sty : $ style ; $ this -> _fetch_sty = $ style ; $ rst = null ; switch ( $ style ) { case \ PDO :: FETCH_BOTH : case \ PDO :: FETCH_BOUND : $ rst = \ oci_fetch_array ( $ this -> _stmt , \ OCI_BOTH + \ OCI_RETURN_NULLS ) ; break ; case \ PDO :: FETCH_ASSOC : $ rst = \ oci_fetch_array ( $ this -> _stmt , \ OCI_ASSOC + \ OCI_RETURN_NULLS ) ; $ rst = $ this -> _fixResultKeys ( $ rst ) ; break ; case \ PDO :: FETCH_NUM : $ rst = \ oci_fetch_array ( $ this -> _stmt , \ OCI_NUM + \ OCI_RETURN_NULLS ) ; break ; case \ PDO :: FETCH_OBJ : $ rst = \ oci_fetch_object ( $ this -> _stmt ) ; break ; } $ this -> _current = $ rst ; $ this -> _checkBinds ( ) ; } catch ( \ Exception $ e ) { throw new \ PDOException ( $ e -> getMessage ( ) ) ; } restore_error_handler ( ) ; return $ rst ; }
Fetch a value

@param int $style       to fetch values
@param int $orientation cursor orientation
@param int $offset      offset

@return mixed
@throws \PDOException
Fetch a value