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 for IF/CASE statement with >=, <=, != #1454

Closed
ekkirala opened this Issue Nov 11, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@ekkirala
Copy link

ekkirala commented Nov 11, 2018

Affects PMD Version:
PMD 6.9.0

Rule:
NA
Description:
Throws ParseException for Valid conditions for IF/CASE statements.
Code Sample demonstrating the issue:

create or replace procedure PMD_TEST_CASE( a IN NUMBER) AS
  

begin


    CASE WHEN a >= 100 then -- Test the same with <=,!=,<> all cases fail both with IF and CASe statements
      dbms_output.put_line('Number is greater than equal to 100');
    ELSE
      dbms_output.put_line('Number is less than 100');  
    END CASE;

exception
  when others then 
    dbms_output.put_line('ERROR: ' || sqlerrm);    

end PMD_TEST_CASE;

Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other]
CLI

JDK 10.0.1, MacIS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment