File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -476,13 +476,12 @@ public function parse()
476
476
$ second = $ list ->getNextOfType (Token::TYPE_KEYWORD );
477
477
478
478
// ANALYZE keyword can be an indication of two cases:
479
- // 1- ANALAYZE TABLE statements, in both mariaDB and MySQL
480
- // 2- Explain statement, in case of mariaDB https://mariadb.com/kb/en/explain-analyze/
481
- // We need to point each case to the correct parser
479
+ // 1 - ANALYZE TABLE statements, in both MariaDB and MySQL
480
+ // 2 - Explain statement, in case of MariaDB https://mariadb.com/kb/en/explain-analyze/
481
+ // We need to point case 2 to use the EXPLAIN Parser.
482
+ $ statementName = 'EXPLAIN ' ;
482
483
if ($ first ->keyword === 'TABLE ' || $ second ->keyword === 'TABLE ' ) {
483
484
$ statementName = 'ANALYZE ' ;
484
- } else {
485
- $ statementName = 'EXPLAIN ' ;
486
485
}
487
486
488
487
$ list ->idx = $ lastIdx ;
You can’t perform that action at this time.
0 commit comments