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?

    user2885917

      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

      begin

        $if $$p1 $then

            return 1;

        $else

            $if $$p2 $then

                return 2;

            $else

                if 0=0 then

                    $if $$p3 $then

                         return 3;

                    $end

                    return 0;

                end if;

            $end

        $end

      end f;

       

      parser_syntax_error_6.png