diff options
author | Michal Čihař <michal@cihar.com> | 2017-05-05 11:29:33 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-05-05 11:30:33 +0200 |
commit | cf2df5354d760a1152217555e1ca6ee2026aa3c1 (patch) | |
tree | 29e20435430c7c57dd9a85788e20ca0884e893ef /src | |
parent | b524ed375c1454a6a9643690838bb3e733ab04b9 (diff) | |
download | sql-parser-cf2df5354d760a1152217555e1ca6ee2026aa3c1.zip sql-parser-cf2df5354d760a1152217555e1ca6ee2026aa3c1.tar.gz sql-parser-cf2df5354d760a1152217555e1ca6ee2026aa3c1.tar.bz2 |
Properly handle lowercase begin statement
Actually all statements where main token is used as an option.
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/13240
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Statement.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Statement.php b/src/Statement.php index 02b8d0b..b59e758 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -321,7 +321,7 @@ abstract class Statement } // Checking if this is the beginning of the statement. - if (!empty(Parser::$STATEMENT_PARSERS[$token->value])) { + if (!empty(Parser::$STATEMENT_PARSERS[$token->keyword])) { if ((!empty(static::$CLAUSES)) // Undefined for some statements. && (empty(static::$CLAUSES[$token->value])) ) { |