irm-1.6-b3/MDB/ibase.php
/**
     * Send a query to the database and return any results
     *
     * @param string $query the SQL query
     * @param array $types array that contains the types of the columns in
     *                         the result set
     * @return mixed result identifier if query executed, else MDB_error
     * @access public
     **/
Send a query to the database and return any results
@param string $query the SQL query
@param array $types array that contains the types of the columns in
the result set
@return mixed result identifier if query executed, else MDB_error
@access public
Send a query to the database and return any results @param string $query the SQL query @param array $types array that contains the types of the columns in the result set @return mixed result identifier if query executed else MDB_error @access public
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;
        $connected = $this->connect();
        if (MDB::isError($connected)) {
            return $connected;
        }
        if (!MDB::isError($result = $this->_doQuery($query, $first, $limit, 0))) {
            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->ibaseRaiseError();
    }
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 ; $ connected = $ this -> connect ( ) ; if ( MDB :: isError ( $ connected ) ) { return $ connected ; } if ( ! MDB :: isError ( $ result = $ this -> _doQuery ( $ query , $ first , $ limit , 0 ) ) ) { 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 -> ibaseRaiseError ( ) ; }
Send a query to the database and return any results
 @param string $query the SQL query
 @param array $types array that contains the types of the columns in
                         the result set
 @return mixed result identifier if query executed, else MDB_error
 @access public
Send a query to the database and return any results @param string $query the SQL query @param array $types array that contains the types of the columns in the result set @return mixed result identifier if query executed else MDB_error @access public