Skip to content
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

[BUG] JSQLParser Version : Mysql: for update Confused #1995

Closed
nieqiurong opened this issue Apr 19, 2024 · 2 comments
Closed

[BUG] JSQLParser Version : Mysql: for update Confused #1995

nieqiurong opened this issue Apr 19, 2024 · 2 comments
Assignees
Labels

Comments

@nieqiurong
Copy link

Always check against the Latest SNAPSHOT of JSQLParser and the Syntax Diagram

Failing SQL Feature:

  • Wrong result : SELECT * FROM t_demo WHERE a = 1 FOR UPDATE ORDER BY b ASC LIMIT 1

SQL Example:

  • Simplified Query Example, focusing on the failing feature
    select * from t_demo where a = 1 order by b asc limit 1 for update

Software Information:

  • JSqlParser 4.9
  • Database Mysql

Tips:

An incorrect sql was returned through the parser,and this sql could not be executed correctly.

@manticore-projects
Copy link
Contributor

Thank you for reporting, I can confirm that the Deparser is not putting this at the right position.
I am going fix this eventually.

@nieqiurong
Copy link
Author

Thank you, looking forward to your updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants