+ [misc] add combineMultipleTable.
This commit is contained in:
@@ -75,7 +75,7 @@ class sqlparser
|
||||
* Combine single table to columns.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function combineSingleTable()
|
||||
{
|
||||
@@ -91,6 +91,23 @@ class sqlparser
|
||||
return $combineColumns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Combine multiple table to columns.
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function combineMultipleTable()
|
||||
{
|
||||
foreach($this->columns as $columnName => $column)
|
||||
{
|
||||
$column['table'] = $this->searchTables($column['table'], $this->tables, $column['origin']);
|
||||
$combineColumns[$columnName] = $column;
|
||||
}
|
||||
|
||||
return $combineColumns;
|
||||
}
|
||||
|
||||
/**
|
||||
* Search table from origin tables.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user