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

[plsql] Fix plsql parsing error in parenthesis groups #3928

Merged
merged 3 commits into from
Apr 21, 2022

Conversation

LiGaOg
Copy link

@LiGaOg LiGaOg commented Apr 21, 2022

Describe the PR

This PR fixes the plsql parser exception encountered in issue 3706. By changing the grammar in .jjt file, this parse error has been fixed and passed all added unit tests.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@pmd-test
Copy link

1 Message
📖 No regression tested rules have been changed.

Generated by 🚫 Danger

Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks fine!

I'll change the test to be a "BaseTreeDumpTest", so that we not only check for parse errors, but also check the parse tree. The current tests in this flavor for plsql are in https://github.com/pmd/pmd/blob/master/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/ast/PlsqlTreeDumpTest.java , but I'll reuse your test class and simply convert it.

Note: You don't need to create a new PR when adding new commits, you can simply push the commits to your branch and Github will update the existing PR.

@adangel adangel added this to the 6.45.0 milestone Apr 21, 2022
adangel added a commit to adangel/pmd that referenced this pull request Apr 21, 2022
adangel added a commit to adangel/pmd that referenced this pull request Apr 21, 2022
[plsql] Fix plsql parsing error in parenthesis groups pmd#3928
@adangel adangel merged commit 17ff1b7 into pmd:master Apr 21, 2022
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.

[plsql] Parsing exception CURSOR statement with parenthesis groupings
3 participants