示例#1
0
 /**
  * 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);
 }
示例#2
0
 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);
 }