-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Unexpected token. (near ;) #18487
Comments
Can you confirm what snapshot you are using ? |
Latest versions, from yesterday, with 5.8.0. |
Seems not to be in the parser, let's move it to phpMyAdmin main $ echo 'SELECT * FROM `actor`' | ./bin/lint-query
$ echo 'SELECT * FROM `actor` ORDER BY `actor_id` ASC' | ./bin/lint-query
$ echo 'SELECT * FROM `actor` ORDER BY `actor_id` ASC;' | ./bin/lint-query
$ echo 'SELECT * FROM `actor` ORDER BY `actor_id` ASC;' | ./bin/highlight-query
SELECT
*
FROM
`actor`
ORDER BY |
It's caused by this commit 99881de but I don't know why and also don't know why this change was introduced. It still happens on 6.0 but the errors from Linter aren't always showing up on the UI. |
Oh! |
Describe the bug
Something has changed in the past weeks that is causing a
Unexpected token. (near ;)
error on phpMyAdmin 5.2.2-dev and 6.0.0-dev for every query that is edited and has;
at the end, no matter what you type.Strange, it doesn't happen on the demo server.
To Reproduce
Steps to reproduce the behavior:
;
at the endExpected behavior
No
Unexpected token. (near ;)
error should be given.Screenshots
07.06.2023_13.03.22_REC.mp4
Server configuration
The text was updated successfully, but these errors were encountered: