irm-1.6-b3/MDB/querysim.php
/**
     * Get QuerySim text from appropriate source and return
     * the parsed text.
     *
     * @param string The QuerySim text
     * @param mixed   $types  array that contains the types of the columns in
     *                        the result set
     *
     * @access public
     *
     * @return mixed Simulated result set as a multidimentional
     * array if valid QuerySim text was passed in.  A MDB error
     * is returned on failure.
     */
Get QuerySim text from appropriate source and return
the parsed text.

@param string The QuerySim text
@param mixed   $types  array that contains the types of the columns in
the result set

@access public

@return mixed Simulated result set as a multidimentional
array if valid QuerySim text was passed in.  A MDB error
is returned on failure.
Get QuerySim text from appropriate source and return the parsed text . @param string The QuerySim text @param mixed $types array that contains the types of the columns in the result set @access public @return mixed Simulated result set as a multidimentional array if valid QuerySim text was passed in . A MDB error is returned on failure .
function query($query, $types = null)
    {
        if ($this->database_name) {
            $query = $this->_readFile();
        }
        $this->debug("Query: $query");
        $ismanip = false;
        $first = $this->first_selected_row;
        $limit = $this->selected_row_limit;
        $this->last_query = $query;
        if ($result = $this->_buildResult($query)) {
            if ($types != null) {
                if (!is_array($types)) {
                    $types = array($types);
                }
                if (MDB::isError($err = $this->setResultTypes($result, $types))) {
                    $this->freeResult($result);
                    return $err;
                }
            }
            if ($limit > 0) {
                $result[1] = array_slice($result[1], $first-1, $limit);
            }
            $this->highest_fetched_row[$this->_querySimSignature($result)] = -1;
            return $result;
        }
        return $this->raiseError();
    }
function query ( $ query , $ types = null ) { if ( $ this -> database_name ) { $ query = $ this -> _readFile ( ) ; } $ this -> debug ( " Query:  $ query " ) ; $ ismanip = false ; $ first = $ this -> first_selected_row ; $ limit = $ this -> selected_row_limit ; $ this -> last_query = $ query ; if ( $ result = $ this -> _buildResult ( $ query ) ) { if ( $ types != null ) { if ( ! is_array ( $ types ) ) { $ types = array ( $ types ) ; } if ( MDB :: isError ( $ err = $ this -> setResultTypes ( $ result , $ types ) ) ) { $ this -> freeResult ( $ result ) ; return $ err ; } } if ( $ limit > 0 ) { $ result [ 1 ] = array_slice ( $ result [ 1 ] , $ first - 1 , $ limit ) ; } $ this -> highest_fetched_row [ $ this -> _querySimSignature ( $ result ) ] = - 1 ; return $ result ; } return $ this -> raiseError ( ) ; }
Get QuerySim text from appropriate source and return
 the parsed text.
Get QuerySim text from appropriate source and return the parsed text .