+ [misc] add parseTable.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user