+ [misc] add getOriginTable.
This commit is contained in:
@@ -71,6 +71,20 @@ class sqlparser
|
||||
$this->isSelect = $this->statement instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement === true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get origin table from table name or expr.
|
||||
*
|
||||
* @param string $table
|
||||
* @access public
|
||||
* @return string|array
|
||||
*/
|
||||
public function getOriginTable($table)
|
||||
{
|
||||
$this->storeOriginTable($table);
|
||||
|
||||
return $table;
|
||||
}
|
||||
|
||||
/**
|
||||
* Judge column exist in origin table or not.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user