Toad World® Forums

13.2.0.219 dynamic constant sizes indicated as errors

As of Oracle 12.2 one can dynamically define PL/SQL variable types:
The following is a valid statement:

DECLARE
g_module_name CONSTANT VARCHAR2(18+ORA_MAX_NAME_LEN) := 'Fatal error in '|| $$PLSQL_UNIT ||'.';
BEGIN
...
END;

... but line #2 is indicated as containing an error (Found '+': Expecting ) -or- ...)