Exemple #1
0
 /**
  * Get the tables used in this statement.
  *
  * @param int $flags  Query::SPLIT_% options
  * @return DB_Table
  */
 public function getTables($flags = 0)
 {
     return QuerySplitter::splitTables($this->getParts(), $flags);
 }
 public function testSplitTables_Delete()
 {
     $tables = QuerySplitter::splitTables("DELETE test.* FROM `test` INNER JOIN `xyz` ON test.id=xyz.test_id");
     $this->assertEquals(array("test" => "`test`", "xyz" => "`xyz`"), $tables);
 }