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] Additional info in SqlStatement, FormalParameter and FetchStatement by zgrzyt93 · Pull Request #2449 · pmd/pmd

Conversation

@zgrzyt93

@zgrzyt93 zgrzyt93 commented Apr 27, 2020 •
edited by adangel
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Describe the PR

I have prepared changes to PR #2347 fulfilling requirements described in these PR comments.
It regards:

SqlStatement - COMMIT or ROLLBACK
FormalParameterMode - IN, OUT, NO COPY
FetchStatement - BULK COLLECT, BULK COLLECT LIMIT

Related issues

  • Continues / Replaces [plsql] added some additional info in userData #2347

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
szymanp23 and others added 2 commits March 6, 2020 12:35
@szymanp23
Merge pull request #1 from pmd/master
99a9115
Sync
Grzegorz Sudolski
[plsql] added some additional info in userData
15b0bda
@zgrzyt93 zgrzyt93 changed the title Additional info [plsql] Additional info in SqlStatement, FormalParameter and FetchStatement Apr 27, 2020
@zgrzyt93
Merge branch 'master' into additional_info
ffd573e
@ghost

ghost commented Apr 27, 2020

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.

zgrzyt93 added 3 commits April 27, 2020 15:32
@zgrzyt93
Update ASTSqlStatement.java
08a430e
InternalApi annotation added
@zgrzyt93
Update ASTFetchStatement.java
944752d
InternalApi annotation added.
@zgrzyt93
Update ASTFormalParameter.java
5b8a9fa
Code style refactoring
@adangel

adangel commented Apr 27, 2020

Copy link
Copy Markdown
Member

Thanks for the PR, I'll have a look at it on Thursday.
Can we close #2347 then?

All reactions

Sorry, something went wrong.

Uh oh!

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

@adangel adangel self-assigned this Apr 27, 2020
@zgrzyt93

zgrzyt93 commented Apr 28, 2020

Copy link
Copy Markdown
Contributor Author

As a matter of fact, this PR replaces PR #2347, so after the revision of this one, PR #2347 can be closed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@adangel adangel added this to the 6.24.0 milestone Apr 30, 2020
adangel
adangel approved these changes Apr 30, 2020
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!
I'll fix the small things myself when merging.
Note, that ASTSqlStatement is only there, because that's a shortcut - it doesn't really parse the SQL Statement, it just swallows anything...

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pmd-plsql/etc/grammar/PldocAST.jjt

(<IN> {jjtThis.setIn(true); } )?
(<OUT> {jjtThis.setOut(true); } )?
(<NOCOPY> {jjtThis.setNoCopy(true); } )?

@adangel adangel Apr 30, 2020

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.

This looks correct (see https://docs.oracle.com/en/database/oracle/oracle-database/18/lnpls/formal-parameter-declaration.html#GUID-5BA8E033-96B9-439A-A4FC-4844FEC14AD8). The previous version was much more confusing. We can remove now the comment //the order of outer "|" is important !

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTFormalParameter.java
return this.in;
}

public void setIn(boolean in) {

@adangel adangel Apr 30, 2020

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.

we should make all setters package private, so that it can only be called from the parser....

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread pmd-plsql/src/main/java/net/sourceforge/pmd/lang/plsql/ast/ASTSqlStatement.java
super(p, id);
}

public void setType(Type type) {

@adangel adangel Apr 30, 2020

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.

package-private

Sorry, something went wrong.

Uh oh!

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

All reactions
@adangel adangel mentioned this pull request Apr 30, 2020
[plsql] added some additional info in userData #2347
Closed
2 tasks
adangel added a commit that referenced this pull request Apr 30, 2020
@adangel
[plsql] Small improvements, see #2449
ef9d5fd
adangel added a commit that referenced this pull request Apr 30, 2020
@adangel
[doc] Update release notes, refs #2449
6c97fb0
adangel added a commit that referenced this pull request Apr 30, 2020
@adangel
Merge branch 'pr-2449'
01c5900
[plsql] Additional info in SqlStatement, FormalParameter and FetchStatement #2449
@adangel
adangel merged commit 5b8a9fa into pmd:master Apr 30, 2020
@szymanp23
szymanp23 deleted the additional_info branch May 18, 2020 11:44
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

None yet

Projects

None yet

Milestone

6.24.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@zgrzyt93 @adangel @szymanp23
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.