diff --git a/lib/sqlparser/sqlparser.class.php b/lib/sqlparser/sqlparser.class.php index ef5491cc37..5b0a510614 100644 --- a/lib/sqlparser/sqlparser.class.php +++ b/lib/sqlparser/sqlparser.class.php @@ -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. *