GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [plsql] Fix plsql parsing error in parenthesis groups by LiGaOg · Pull Request #3928 · pmd/pmd

Conversation

@LiGaOg

@LiGaOg LiGaOg commented Apr 21, 2022

Copy link
Copy Markdown

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

  • Fixes [plsql] Parsing exception CURSOR statement with parenthesis groupings #3706

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)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
李家奥 added 3 commits April 19, 2022 11:03
李家奥 李家奥
[plsql] Fix parsing exception
5958b92
李家奥 李家奥
add junit test cases
2667b42
李家奥 李家奥
fix one error in ParenthesisGroup0.pls
17ff1b7
@ghost

ghost commented Apr 21, 2022

Copy link
Copy Markdown
1 Message
📖 No regression tested rules have been changed.

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

adangel
adangel approved these changes Apr 21, 2022
View reviewed changes

@adangel adangel left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this 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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@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
[doc] Update release notes (pmd#3706, pmd#3928)
ebbc017
adangel added a commit to adangel/pmd that referenced this pull request Apr 21, 2022
@adangel
Merge pull request pmd#3928 from LiGaOg:master
a6d8c1b
[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

Reviewers

@adangel adangel adangel approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

6.45.0

Development

Successfully merging this pull request may close these issues.

[plsql] Parsing exception CURSOR statement with parenthesis groupings

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@LiGaOg @adangel
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.