+ [misc] add parseTable.

This commit is contained in:
qixinzhi
2024-06-11 03:06:52 +00:00
parent 8a8a15d157
commit 802b82b609
+18
View File
@@ -71,6 +71,24 @@ class sqlparser
$this->isSelect = $this->statement instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement === true;
}
/**
* Parse table.
*
* @param object $expr
* @param string $type
* @access public
* @return void
*/
public function parseTable($expr, $type)
{
$isTable = empty($expr->subquery);
$table = array('alias' => $expr->alias, 'isTable' => $isTable, 'type' => $type);
$table['originTable'] = $this->getOriginTable($expr->expr, $isTable);
return $table;
}
/**
* Get origin table from table name or expr.
*