7 Replies Latest reply on Jan 16, 2019 4:01 PM by Mike Kutz

    Parser can not parse the correct code with conditional compilation directives. Problem with parsing?


      The code below is compiled and executed in Oracle Database 18c (18.3), but the parser cannot parse it.

      Is this some kind of problem with parsing?


      create or replace function f return number as


        $if $$p1 $then

            return 1;


            $if $$p2 $then

                return 2;


                if 0=0 then

                    $if $$p3 $then

                         return 3;


                    return 0;

                end if;



      end f;