Beautifier Error with conditional compling

orca777

Member³
Hello Dev-Team,
seems the Beautifier has probs with conditional compiling
this package function - code compiles without error ...

Code:
PROCEDURE Set_Creator(
    $IF $$ISS_CORE $THEN
      p_Comid IN Employee.Comid%TYPE
    $ELSE
      p_Comid IN Vxi_Employee.Comid%TYPE
    $END
    ) IS
    BEGIN
        Go_Created_By := Employee_Util.Get_Id(p_Comsiid);
    END Set_Creator;

/Karl
PL/SQL-Dev Version 8.0.1.1502
Oracle 10.2.0.3

 
Last edited:
We'll fix it. As a workaround you can move the parentheses into the conditional expression:

Code:
PROCEDURE Set_Creator
  $IF $$ISS_CORE $THEN
  (p_Comid IN Employee.Comid%TYPE)
  $ELSE
  (p_Comid IN Vxi_Employee.Comid%TYPE)
  $END
   IS
  BEGIN
    Go_Created_By := Employee_Util.Get_Id(p_Comsiid);
  END Set_Creator;
 
Thanks Marco;
I know it's not so easy because the preprocessor
does not fit to the parsing tree of the pl/sql-language
for beautifying

thank you for the hint
/Karl
 
Back
Top