Toad World® Forums

Formating with condition compilation


#1

I cannot get the following code (or package spec) to format

CREATE OR REPLACE PACKAGE a
IS
FUNCTION a (a IN NUMBER)
RETURN NUMBER;

FUNCTION b (a IN NUMBER)
RETURN NUMBER
$IF (DBMS_DB_VERSION.version=11 AND DBMS_DB_VERSION.release>2)
OR DBMS_DB_VERSION.version>11
$THEN
RESULT_CACHE
$END;
FUNCTION c (a IN NUMBER)
RETURN NUMBER
$IF (DBMS_DB_VERSION.version=11 AND DBMS_DB_VERSION.release>2)
OR DBMS_DB_VERSION.version>11
$THEN
RESULT_CACHE
$END;
END a;


#2

Hi Filipe,

Thanks for reporting. I have raised a CR to the formatter team to fix this. We will keep you posted.

Thanks,
Vincent