protected function checkQueryByPattern($pattern, $sql = null) {
        if (!isset($sql)) {
            $sql = $this->getSql();
        }
        if ($sql === "") {
            return false;
        }
        return preg_match($pattern, $sql) > 0;
    }
protected function checkQueryByPattern($pattern, $sql = null) {
        if (!isset($sql)) {
            $sql = $this->getSql();
        }
        if ($sql === "") {
            return false;
        }
        return preg_match($pattern, $sql) > 0;
    }
protected function checkQueryByPattern ( $ pattern , $ sql = null ) { if ( ! isset ( $ sql ) ) { $ sql = $ this -> getSql ( ) ; } if ( $ sql === "" ) { return false ; } return preg_match ( $ pattern , $ sql ) > 0 ; }
Check query string by pattern
@param string      $pattern
@param string|null $sql
@return bool
@internal
Check query string by pattern