TOAD for Oracle 16.0.90.1509, Error when formatting code

The formatter produces an error when "fetch first xxx rows only" is used with a variable instead of a fixed number:

[Error] Syntax check (9: 53): ERROR: line 9, column 53, ending line 9, column 53: Found ')': Our parser found the following statement to be ambiguous. Please report this to Quest Software Support.

Parser: ORA-SQL-PLSQL, on line: 1, context:

CREATE OR REPLACE PACKAGE BODY FORMATTER_ERROR
IS
PROCEDURE PRODUCE_ERROR
IS
V_LINE_COUNT PLS_INTEGER := 1;
BEGIN
FOR RS IN (SELECT *
FROM DUAL
FETCH FIRST V_LINE_COUNT ROWS ONLY)
LOOP
NULL;
END LOOP;
END PRODUCE_ERROR;
END FORMATTER_ERROR;
/

You may want to COPY this window (Ctrl-C) and then PASTE the content into your report.
You may want to change sensitive fields to say XXXXXX, or remove irrelevant portions of the code.
Thank you!

Just press Enter to continue. Parser may not have done its work correctly but that should be harmless.

Hello Rainer,

This has already been fixed in a more recent Toad. Can't tell you exactly the minimum version, but it should be using QP5 version 5.382 or later.

Thanks,
Andre

Perfect Andre, thank you! So I just wait for the next TOAD release (normally I don't use the Betas).

Best regards from the neighbouring country
Rainer