+ [misc] add matchColumnsWithTable.

This commit is contained in:
qixinzhi
2024-06-11 05:14:40 +00:00
parent 3cdbc79a36
commit e68aa1fe99
+12
View File
@@ -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.
*