-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fixing parser errors when adding columns with SET type #344
Conversation
Codecov Report
@@ Coverage Diff @@
## QA #344 +/- ##
============================================
- Coverage 99.80% 99.78% -0.03%
- Complexity 1911 1914 +3
============================================
Files 63 63
Lines 4596 4605 +9
============================================
+ Hits 4587 4595 +8
- Misses 9 10 +1
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.
That's what I've noticed, I've also added some comments in the code, to make things clearer in the future
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.
💯 Oh yeah, this looks neat and readable
Codecov seems to complain about a non covered line for some reason
While trying to create some particular query I found this one made by phpMyAdmin on table charset change ALTER TABLE `d` DEFAULT CHARSET=hp8 COLLATE hp8_english_ci; Errors:
Keeping this to add a new test before merging And another bunch of them
Would you mind if I add them into QA and then you rebase/squash ontop of it ? |
Interesting, gonna figure out how.
Sure, feel free to add them. |
Done as 09fefbf |
19f053d
to
c571537
Compare
It seems like all new added tests aren't related to the changes we introduced in this PR. sql-parser/src/Components/AlterOperation.php Lines 311 to 313 in b18edd6
looks like the fix should be somewhere in the sql-parser/src/Components/AlterOperation.php Line 236 in b18edd6
Also, if i'm not mistaken, |
Signed-off-by: Fawzi E. Abdulfattah <[email protected]>
c571537
to
e35b25a
Compare
Signed-off-by: Fawzi E. Abdulfattah <[email protected]>
40314d5
to
88d7f3e
Compare
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.
🚢
phpstan complains about this possible null value, added a check in 6ad0bb6
|
Pull-request: #344 Signed-off-by: William Desportes <[email protected]>
All tools pass but phpcs is nuts (only on master branch): https://github.com/phpmyadmin/sql-parser/runs/3344576860#step:7:10 Fixed, it was ridiculous: cf9cb91 |
Pull-request: #344 Signed-off-by: William Desportes <[email protected]>
All good, but unable to have the last line covered Fixed in fd1552e 🎉 |
Pull-request: #344 Signed-off-by: William Desportes <[email protected]>
Happy to see everything fixed! 🥳🥳❤️ |
Hi, This PR should fix #168 and the issues shown #337
I will clarify the changes in a review.
Testing in PMA too.