public/phpmyadmin/test/classes/RelationCleanupDbiMock.php
/**
     * runs a query
     *
     * @param string $sql                 SQL query to execute
     * @param mixed  $link                optional database link to use
     * @param int    $options             optional query options
     * @param bool   $cache_affected_rows whether to cache affected rows
     *
     * @return mixed
     */
runs a query
@param string $sql                 SQL query to execute
@param mixed  $link                optional database link to use
@param int    $options             optional query options
@param bool   $cache_affected_rows whether to cache affected rows

@return mixed
runs a query @param string $sql SQL query to execute @param mixed $link optional database link to use @param int $options optional query options @param bool $cache_affected_rows whether to cache affected rows @return mixed
function query($sql, $link = null, $options = 0, $cache_affected_rows = true)
    {
        if (mb_stripos($sql, "column_info") !== false) {
            unset($this->values[$this->indexs['column_info']]);
        }
        if (mb_stripos($sql, "table_info") !== false) {
            unset($this->values[$this->indexs['table_info']]);
        }
        if (mb_stripos($sql, "table_coords") !== false) {
            unset($this->values[$this->indexs['table_coords']]);
        }
        if (mb_stripos($sql, "relation") !== false) {
            unset($this->values[$this->indexs['relation']]);
        }
        if (mb_stripos($sql, "pdf_pages") !== false) {
            unset($GLOBALS [$this->indexs['pdf_pages']]);
        }
        if (mb_stripos($sql, "bookmark") !== false) {
            unset($GLOBALS [$this->indexs['bookmark']]);
        }
        return true;
    }
function query ( $ sql , $ link = null , $ options = 0 , $ cache_affected_rows = true ) { if ( mb_stripos ( $ sql , " column_info " ) !== false ) { unset ( $ this -> values [ $ this -> indexs [ 'column_info' ] ] ) ; } if ( mb_stripos ( $ sql , " table_info " ) !== false ) { unset ( $ this -> values [ $ this -> indexs [ 'table_info' ] ] ) ; } if ( mb_stripos ( $ sql , " table_coords " ) !== false ) { unset ( $ this -> values [ $ this -> indexs [ 'table_coords' ] ] ) ; } if ( mb_stripos ( $ sql , " relation " ) !== false ) { unset ( $ this -> values [ $ this -> indexs [ 'relation' ] ] ) ; } if ( mb_stripos ( $ sql , " pdf_pages " ) !== false ) { unset ( $ GLOBALS [ $ this -> indexs [ 'pdf_pages' ] ] ) ; } if ( mb_stripos ( $ sql , " bookmark " ) !== false ) { unset ( $ GLOBALS [ $ this -> indexs [ 'bookmark' ] ] ) ; } return true ; }
runs a query
 @param string $sql                 SQL query to execute
 @param mixed  $link                optional database link to use
 @param int    $options             optional query options
 @param bool   $cache_affected_rows whether to cache affected rows
runs a query @param string $sql SQL query to execute @param mixed $link optional database link to use @param int $options optional query options @param bool $cache_affected_rows whether to cache affected rows