+ [misc] add matchColumnsWithTable.
This commit is contained in:
@@ -71,6 +71,18 @@ class sqlparser
|
||||
$this->isSelect = $this->statement instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement === true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Match columns with table.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function matchColumnsWithTable()
|
||||
{
|
||||
if(count($tables) == 1) return $this->combineSingleTable();
|
||||
return $this->combineMultipleTable();
|
||||
}
|
||||
|
||||
/**
|
||||
* Combine single table to columns.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user