public function setQuery($query)
    {
        $raw = SqlFormatter::removeComments($query);
        if ($this->noSplit) {
            $queries = array($raw);
        } else {
            $queries = SqlFormatter::splitQuery($raw);
        }

        foreach ($queries as $index => $q) {
            $this->addOrReplace($index, $q);
        }

        $this->removeFromIndex(count($queries));
    }
public function setQuery($query)
    {
        $raw = SqlFormatter::removeComments($query);
        if ($this->noSplit) {
            $queries = array($raw);
        } else {
            $queries = SqlFormatter::splitQuery($raw);
        }

        foreach ($queries as $index => $q) {
            $this->addOrReplace($index, $q);
        }

        $this->removeFromIndex(count($queries));
    }
public function setQuery ( $ query ) { $ raw = SqlFormatter :: removeComments ( $ query ) ; if ( $ this -> noSplit ) { $ queries = array ( $ raw ) ; } else { $ queries = SqlFormatter :: splitQuery ( $ raw ) ; } foreach ( $ queries as $ index => $ q ) { $ this -> addOrReplace ( $ index , $ q ) ; } $ this -> removeFromIndex ( count ( $ queries ) ) ; }
Set SQL Query.

@param string $query
Set SQL Query .