Toad World® Forums

Outline and condition compilation in spec


#1

Hi

An example of outline “error” in the return “section”: it appends the condition compilation code

FUNCTION xpto (pct_var IN varchar2) RETURN VARCHAR2
$IF (DBMS_DB_VERSION.version=11 AND DBMS_DB_VERSION.release>2)
OR DBMS_DB_VERSION.version>11
$THEN
RESULT_CACHE
$END;

Regards


#2

Hi Filipe,
Indeed, we have a problem with conditional directives. In fact, the script you sent isn’t even recognised by our parser as function header. Please confirm that this isn’t a regression from 6.2.
In the future, we plan to replace our parser with QP5, the same parser that’s used for PL/SQL formatting, which shouldn’t have this problem.
Regards,
Roman


#3

It’s not a regression of the outline behaviuor