ELSE expressions terminate early when encountering an END token#654
ELSE expressions terminate early when encountering an END token#654SharpDerek wants to merge 1 commit intophpmyadmin:5.11.xfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #654 +/- ##
=========================================
Coverage 96.30% 96.30%
- Complexity 2254 2255 +1
=========================================
Files 90 90
Lines 4982 4982
=========================================
Hits 4798 4798
Misses 184 184
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
williamdes
left a comment
There was a problem hiding this comment.
Thank you for this fix. If possible please reset your branch to 5.11.x and cherry pick your work and force push.
It will allow us to have the fix on 5.11.x
Else just let me know and I will do it manually
|
Also, please add test cases |
70b388b to
100f954
Compare
Here's the most succinct test case I can provide: Output before change: Output after change: |
|
If this gets merged into 5.11.x, would it be put into 6.0.0 as well? That is the version that we are currently running and can't really downpatch. |
CASE statements with an ELSE returning a value with the "tablename.columnname" format fail due to encountering an END token and parsing it as if it were a column instead. This fixes the issue by checking to see if the current token is an END and breaks before column processing.