irm-1.6-b3/MDB/oci8.php
/**
     * Send a query to the database and return any results
     * 
     * @access public 
     * @param string $query the SQL query
     * @param array $types array that contains the types of the columns in
     *                         the result set
     * @return mixed a result handle or MDB_OK on success, a MDB error on failure
     */
Send a query to the database and return any results

@access public
@param string $query the SQL query
@param array $types array that contains the types of the columns in
the result set
@return mixed a result handle or MDB_OK on success, a MDB error on failure
Send a query to the database and return any results @access public @param string $query the SQL query @param array $types array that contains the types of the columns in the result set @return mixed a result handle or MDB_OK on success a MDB error on failure
function query($query, $types = NULL)
    {
        $this->debug("Query: $query");
        $this->last_query = $query;
        $first = $this->first_selected_row;
        $limit = $this->selected_row_limit;
        $this->first_selected_row = $this->selected_row_limit = 0;
        if (MDB::isError($connect = $this->connect())) {
            return($connect);
        }
        if(!MDB::isError($result = $this->_doQuery($query, $first, $limit))) {
            if ($types != NULL) {
                if (!is_array($types)) {
                    $types = array($types);
                }
                if (MDB::isError($err = $this->setResultTypes($result, $types))) {
                    $this->freeResult($result);
                    return($err);
                }
            }
            return($result);
        }
        return($this->oci8RaiseError());
    }
function query ( $ query , $ types = NULL ) { $ this -> debug ( " Query:  $ query " ) ; $ this -> last_query = $ query ; $ first = $ this -> first_selected_row ; $ limit = $ this -> selected_row_limit ; $ this -> first_selected_row = $ this -> selected_row_limit = 0 ; if ( MDB :: isError ( $ connect = $ this -> connect ( ) ) ) { return ( $ connect ) ; } if ( ! MDB :: isError ( $ result = $ this -> _doQuery ( $ query , $ first , $ limit ) ) ) { if ( $ types != NULL ) { if ( ! is_array ( $ types ) ) { $ types = array ( $ types ) ; } if ( MDB :: isError ( $ err = $ this -> setResultTypes ( $ result , $ types ) ) ) { $ this -> freeResult ( $ result ) ; return ( $ err ) ; } } return ( $ result ) ; } return ( $ this -> oci8RaiseError ( ) ) ; }
Send a query to the database and return any results
Send a query to the database and return any results