Navigation Menu

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] ParseException with INSERT INTO using package global variables #1948

Closed
szymanp23 opened this issue Jul 26, 2019 · 0 comments · Fixed by #1974
Closed

[plsql] ParseException with INSERT INTO using package global variables #1948

szymanp23 opened this issue Jul 26, 2019 · 0 comments · Fixed by #1974
Labels
a:bug PMD crashes or fails to analyse a file. has:pr The issue is already tackled in a PR
Milestone

Comments

@szymanp23
Copy link
Contributor

Affects PMD Version: 6.16

Rule:

Description: In given example:

  • solt4601 is package
  • solt4601.rec is global record type variable
  • solt4601.rec.record_version is records field
  • solt4601.current_rowid is global variable

Code Sample demonstrating the issue:

create or replace function test return varchar2 is
  begin

    insert into sol_individual_commission_rate
    values solt4601.rec
    returning record_version, rowid into solt4601.rec.record_version, solt4601.current_rowid;

    return null;
  end test;
/

Running PMD through: [Designer]

@adangel adangel added the a:bug PMD crashes or fails to analyse a file. label Jul 27, 2019
@adangel adangel added the has:pr The issue is already tackled in a PR label Sep 8, 2019
@adangel adangel added this to the 6.18.0 milestone Sep 8, 2019
@adangel adangel closed this as completed in 8124a04 Sep 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug PMD crashes or fails to analyse a file. has:pr The issue is already tackled in a PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants