The following code shows “Rule 5401 Avoid using an IN OUT parameter as IN only” which is wrong:
CREATE TYPE test_type AS OBJECT ( test_member NUMBER );
CREATE PROCEDURE test_proc(
in_test IN PLS_INTEGER – marked with Rule 5401 Avoid using an IN OUT parameter as IN only.
)
AS
v_test_type test_type;
BEGIN
v_test_type.test_member := in_test;
END;
That and 5402 both have some issues. They are old legacy rules that have not been migrated to the XPATH rule engine. The issue is with variable scope and they need some redesign.
Well, actually I meant “fixed for one of the next betas”. The fix is in component QP5.dll version 5.294. Because it’s a component, not Toad itself, it may take up to a couple of weeks before you get it.