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));
    }