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 ignored WITH clause for SELECT INTO statements #4825

Merged
merged 1 commit into from Feb 16, 2024

Conversation

lbovet
Copy link
Contributor

@lbovet lbovet commented Feb 15, 2024

Describe the PR

  • WITH clauses were ignored because of missing lookahead.
  • Also added WITH clause support for SELECT INTO statements which actually works although not being documented.

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 good!

@@ -1279,6 +1279,7 @@ void AbstractSelectStatement(AbstractSelectStatement node) #void :
ASTSelectIntoStatement SelectIntoStatement() :
{}
{
[ WithClause() ] // Although undocumented, WITH works with SELECT INTO !
Copy link
Member

Choose a reason for hiding this comment

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

@adangel adangel added this to the 7.0.0 milestone Feb 16, 2024
@adangel adangel changed the title [plsql] Fix ignored WITH clause [plsql] Fix ignored WITH clause for SELECT INTO statements Feb 16, 2024
adangel added a commit that referenced this pull request Feb 16, 2024
adangel added a commit that referenced this pull request Feb 16, 2024
[plsql] Fix ignored WITH clause for SELECT INTO statements #4825
@adangel adangel merged commit 4509b6b into pmd:master Feb 16, 2024
3 checks passed
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] WITH clause is ignored for SELECT INTO statements
3 participants