-
-
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
Add support for WITH clause (enhancement for syntax highlighter) #331
Comments
|
I opened a bug against sql-parser for this: #165 |
|
@ibennetch Ah, I looked at the MySQL 8.0 |
|
@stevenwdv No need to be sorry, this is great. I appreciate you taking the time to let us know about it. And since MySQL 8 is still under heavy development it's not surprising that the docs didn't have that section. Sometimes I can be a bit concise and I'm just adding some information I found during my research of your report. No one would know to report anything to sql-parser; since it's bundled in the distribution it really just looks like part of phpMyAdmin. We appreciate your report! |
|
@ibennetch I didn't interpret your previous comments as concise, but thanks for your nice reaction! I think i came across |
|
Related to #165 |
|
I believe this issue is also disrupting the way phpMyAdmin result pagination works. Any query using a CTE ("WITH" clause) will return all results to the browser (even while the interface says "Showing rows 0 - 24"). This typically results in an HTTP timeout for large tables / queries. To reproduce (any table of sufficient length will do): SELECT id FROM mytable; -- pagination works for this query
WITH my_cte AS ( SELECT id FROM mytable ) SELECT id FROM my_cte; -- pagination doesn't work (all rows returned) |
|
Can we close this one as duplicate from #165 ? |
Now that a PR is done I would say this one can stay open |
|
This will be part of 5.5.0 |
Currently the SQL syntax highlighter marks the
WITHkeyword asUnrecognized statement type.MariaDB supports a
WITHclause in combination with aSELECTstatement since version 10.2.1 (stable=10.2.8), see https://mariadb.com/kb/en/the-mariadb-library/with/phpMyAdmin version: 4.7.4
Sort of relates to phpmyadmin/phpmyadmin#13615 (but not really)
The text was updated successfully, but these errors were encountered: