* [misc] fix syntax error.

This commit is contained in:
qixinzhi
2024-06-11 05:24:22 +00:00
parent 9c79645a8d
commit 8d9035a362
+2 -2
View File
@@ -81,8 +81,8 @@ class sqlparser
$this->parser = new PhpMyAdmin\SqlParser\Parser($query);
$this->statements = $this->parser->statements;
$this->statement = $this->statementsCount > 0 ? current($this->statements) : null;
$this->statementsCount = count($this->statements);
$this->statement = $this->statementsCount > 0 ? current($this->statements) : null;
$this->isSelect = $this->statement instanceof PhpMyAdmin\SqlParser\Statements\SelectStatement === true;
}
@@ -107,7 +107,7 @@ class sqlparser
*/
public function matchColumnsWithTable()
{
if(count($tables) == 1) return $this->combineSingleTable();
if(count($this->tables) == 1) return $this->combineSingleTable();
return $this->combineMultipleTable();
}