-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed: failed to parse WHERE / GROUP BY clauses in a SELECT statement without a FROM table #587
Conversation
Codecov Report
@@ Coverage Diff @@
## master #587 +/- ##
==========================================
+ Coverage 71.85% 71.87% +0.01%
==========================================
Files 32 32
Lines 7899 7897 -2
==========================================
Hits 5676 5676
+ Misses 1684 1682 -2
Partials 539 539
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I find a problem: Before this COMMIT:
After this COMMIT:
Note the column name is different. |
Is it casued by line 6061 in parser.y? } else {
lastEnd = len(src)
if src[lastEnd-1] == ';' {
lastEnd--
}
} |
The gramma change seems not right, can we have:
|
I'm trying to fix but not sure it's better to fix, or rollback this PR first. It seems to introduce other problems. Could you find a way to make all the tests pass in #596 @zhenghaoz |
… without a FROM table (pingcap#587)
… without a FROM table (pingcap#587)
Fixed: Failed to parse WHERE / GROUP BY clauses in a SELECT statement without a FROM table
What problem does this PR solve?
Fixed #115
Bad SQL Case:
Check List
Tests