Skip to content

Conversation

ANeumann82
Copy link
Contributor

This adds support for LOCK-Statements (Requested for example here #1142, but we also need it)

It supports:

I just saw that MySQL has a bit different syntax, but as I don't need it I wouldn't add it for now.

Please have a look and let me know if there's something missing or wrong.

@ANeumann82
Copy link
Contributor Author

JMH-Run on my machine:

Benchmark                               (version)  Mode  Cnt    Score    Error  Units
JSQLParserBenchmark.parseSQLStatements     latest  avgt   15  158.130 ▒ 19.012  ms/op
JSQLParserBenchmark.parseSQLStatements        5.3  avgt   15  135.400 ▒ 14.585  ms/op
JSQLParserBenchmark.parseSQLStatements        5.1  avgt   15  110.471 ▒  9.734  ms/op

@ANeumann82 ANeumann82 changed the title Add support for LOCK-Statements [feat] Support for LOCK-Statements Oct 7, 2025
@manticore-projects manticore-projects merged commit 6697c06 into JSQLParser:master Oct 7, 2025
2 of 3 checks passed
@manticore-projects
Copy link
Contributor

Thank you much for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants