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 ParseException for EXECUTE IMMEDIATE str1||str2; by hvbtup · Pull Request #3107 · pmd/pmd

Conversation

@hvbtup

@hvbtup hvbtup commented Feb 10, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Describe the PR

This fixes the ParseExeception for the PLSQL parser when it finds a statement like

EXECUTE IMMEDIATE 'drop database link ' || v_link_name;

Related issues

  • Fixes [plsql] ParseException while parsing EXECUTE IMMEDIATE 'drop database link ' || linkname; #3106

Ready?

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@hvbtup
Fix for issue pmd#3106 ParseException for EXECUTE IMMEDIATE str1||str2;
64d5cca
@ghost

ghost commented Feb 10, 2021

Copy link
Copy Markdown
1 Message
📖 No java rules are changed!

Generated by 🚫 Danger

All reactions

Sorry, something went wrong.

Uh oh!

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

@oowekyala

oowekyala commented Feb 10, 2021

Copy link
Copy Markdown
Member

Thanks for contributing this! Please add a test case for the issue in PLSQLParserTest though

All reactions

Sorry, something went wrong.

Uh oh!

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

@oowekyala oowekyala added this to the 6.32.0 milestone Feb 10, 2021
@oowekyala oowekyala added the in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception label Feb 10, 2021
@oowekyala oowekyala changed the title Fix for issue #3106 ParseException for EXECUTE IMMEDIATE str1||str2; [plsql] Fix ParseException for EXECUTE IMMEDIATE str1||str2; Feb 10, 2021
@oowekyala oowekyala linked an issue Feb 10, 2021 that may be closed by this pull request
[plsql] ParseException while parsing EXECUTE IMMEDIATE 'drop database link ' || linkname; #3106
Closed
@hvbtup
Added unit test for issue pmd#3106
34eb080
adangel
adangel reviewed Feb 11, 2021
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 for the PR!

Please have a look at my comments about the grammar change. I think, we should try to use "StringExpression()" here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/ast/PLSQLParserTest.java Resolved

Uh oh!

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

Comment thread pmd-plsql/etc/grammar/PldocAST.jjt Resolved

Uh oh!

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

@hvbtup
Issue 3106: Use StringExpression, test case renamed, moved plsql to r…
ac1b5ed
…esource folder.
@adangel adangel self-assigned this Feb 19, 2021
adangel
adangel approved these changes Feb 19, 2021
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 good!

Sorry, something went wrong.

Uh oh!

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

All reactions
adangel added a commit that referenced this pull request Feb 19, 2021
@adangel
[doc] Update release notes (#3106 #3107)
e7c808e
adangel added a commit that referenced this pull request Feb 19, 2021
@adangel
Merge pull request #3107 from hvbtup:master
1a30468
[plsql] Fix ParseException for EXECUTE IMMEDIATE str1||str2; #3107
@adangel
adangel merged commit ac1b5ed into pmd:master Feb 19, 2021
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

@adangel adangel

Labels

in:grammar About the grammar of a lexer or parser, eg, a parse/lex exception

Projects

None yet

Milestone

6.32.0

Development

Successfully merging this pull request may close these issues.

[plsql] ParseException while parsing EXECUTE IMMEDIATE 'drop database link ' || linkname;

Uh oh!

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

3 participants

@hvbtup @oowekyala @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.