A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1454 below:

[plsql] ParseException for IF/CASE statement with >=, <=, != · Issue #1454 · pmd/pmd · GitHub

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.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4