pingcap / parser

A MySQL Compatible SQL Parser
Apache License 2.0
1.41k stars 489 forks source link

lexer: fix the bug that lexer may scan wrong tokens #1235

Closed xiongjiwei closed 3 years ago

xiongjiwei commented 3 years ago

What problem does this PR solve?

close https://github.com/pingcap/parser/issues/1203 cherry-pick https://github.com/pingcap/parser/pull/1228

identifierDot should be true if and only if a dot after an identifier, if it is true, the next token must be interpreted as identifier or '*'

What is changed and how it works?

Check List

Tests