/** * Get the columns used in the statement. * * @param int $flags Query::SPLIT_% and Query::UNQUOTE options * @return array */ public function getColumns($flags = 0) { return QuerySplitter::splitColumns($this->getParts(), $flags); }
public function testSplitColumns_Delete() { $columns = QuerySplitter::splitColumns("DELETE test.* FROM `test` INNER JOIN `xyz` ON test.id=xyz.test_id"); $this->assertEquals(array("test.*"), $columns); }