/** * Split the base statement * * @return array */ protected function getBaseParts() { if (!isset($this->baseParts)) { $this->baseParts = QuerySplitter::split($this->statement); } return $this->baseParts; }
public function testSplit_Fail() { $this->setExpectedException('Exception', "Unable to split ALTER TABLE query"); QuerySplitter::split("ALTER TABLE ADD column `foo` varchar(255) NULL"); }