1 Reply Latest reply on Oct 4, 2016 3:29 PM by Vadim Tropashko-Oracle

    [EA4.2] Formatter - still doesn't handle conditional compilation

    Patrick Jolliffe

      Not sure if you have this as a but already or not.

       

      Test case:              

      BEGIN

         $IF DBMS_DB_VERSION.VER_LE_10_2 $THEN

            null;

         $ELSIF DBMS_DB_VERSION.VER_LE_11_2 $THEN

            NULL;        

         $ELSE

            NULL;        

         $END     

      END;

       

      Formatter renders this as:

       

      BEGIN

         $IF DBMS_DB_VERSION.VER_LE_10_2 $THEN

            null;

         $ELSIF DBMS_DB_VERSION.VER_LE_11_2 $THEN

            NULL;        

         $ELSE

      /*** Syntax Error at line 5, column 9

       

       

         $ELSE

               ^^^

       

      Expected:

      ***/

            NULL;        

         $END     

      END;