Bug in test window - scan variables does not always work when removing parameters by comment

Claus Pedersen

Member³
In the test window, I have the code:
Code:
test (:p1,:p2,:p3);
When I use Scan Variables in the parameter pane, I get the (checked) variables p1, p2, p3. This is OK.

I now remove the parameter p2 using a block comment:
Code:
test (:p1/*,:p2*/,:p3);
and use Scan Variables again. This does not remove the checkbox for p2 and if I execute, I get the error ORA-01036: illegal variable name/number.

If I use the block comments like this:
Code:
test (:p1,/*:p2,*/:p3);
and use Scan variables, the variable p2 is unchecked correctly. The position of the commas does seem to have an impact.

Could this be corrected?

PS: A similar behaviour can often be seen in the SQL window where block comments also can confuses the parser. Maybe it is the same code that causes the problem in both type of windows? E.g. the post Semicolons inside commented sections
 
Last edited:
Back
Top