CodeXpert misses an obvious case of unreached code. For Example:
=======================
DECLARE
v_test varchar2(1) := 'A';
BEGIN
IF v_test = 'A'
THEN
v_test := 'B';
ELSIF v_test = 'A'
THEN
v_test := 'C';
END IF;
END;
=======================
In this example, the ELSIF can not happen, but CodeXpert doesn't flag this when it's run.
You need to be signed in and under a current maintenance contract to view premium knowledge articles.
© ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center