We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"Export SQL" generates invalid SQL if a view contains order by desc.
order by desc
Steps to reproduce the behavior:
create table `table` (serial int auto_increment primary key); create view `view` as select * from `table` order by serial desc;
It produces SQL which produces the exact structure above.
It produces invalid SQL:
CREATE ALGORITHM=UNDEFINED DEFINER=`michael`@`%` SQL SECURITY DEFINER VIEW `view` AS SELECT `table`.`serial` AS `serial` FROM `table` ORDER BY `table`.`serial` AS `DESCdesc` ASC ;
The text was updated successfully, but these errors were encountered:
Duplicate of #17321
Sorry, something went wrong.
Hi @miklcct Would you mind trying this fix on your local setup by changing the file in vendor/phpmyadmin/sql-parser: https://github.com/phpmyadmin/sql-parser/pull/371/files#diff-1fc95c4608ac9255e416f3fe0f3be8ea99d11f95351dbda8f00ba2b5419d16e0 ?
You can read more about this issue on #17321
The (phpMyAdmin 5.2+snapshot) also available as a non official docker image is updated with the fix 🚀
williamdes
No branches or pull requests
Describe the bug
"Export SQL" generates invalid SQL if a view contains
order by desc
.To Reproduce
Steps to reproduce the behavior:
Expected behaviour
It produces SQL which produces the exact structure above.
Actual behaviour
It produces invalid SQL:
Server configuration
Client configuration
The text was updated successfully, but these errors were encountered: