From 8d4caa6865aae7416ea711bcf67cb888d7a5deec Mon Sep 17 00:00:00 2001 From: qixinzhi Date: Fri, 16 Aug 2024 06:34:13 +0000 Subject: [PATCH] * [misc] add setFrom. --- lib/sqlparser/sqlparser.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. *