diff --git a/lib/sqlparser/sqlparser.class.php b/lib/sqlparser/sqlparser.class.php index 94345385d8..f739a00df5 100644 --- a/lib/sqlparser/sqlparser.class.php +++ b/lib/sqlparser/sqlparser.class.php @@ -125,6 +125,18 @@ class sqlparser $this->statement = new PhpMyAdmin\SqlParser\Statements\SelectStatement(); } + /** + * Set from. + * + * @param object $from + * @access public + * @return void + */ + public function setFrom($from) + { + $this->statement->from = array($from); + } + /** * Get function. *