Philippe Malera
Member²
Impossible to execute this code in a test window :
I get this error :
And also impossible to beautify this code.
Is this feature supported in Version 12.0.5.1828 ?
SQL:
BEGIN
WITH
PROCEDURE with_procedure(p_id IN VARCHAR2) IS
BEGIN
dbms_output.put_line('p_id=' || p_id);
END;
FUNCTION with_function(p_id IN VARCHAR2) RETURN VARCHAR2 IS
BEGIN
with_procedure(p_id);
RETURN p_id;
END;
SELECT with_function(dummy)
INTO :OUT
FROM dual;
END;
I get this error :
Code:
ORA-06550: line 4, column 15:
PL/SQL: ORA-00905: missing keyword
ORA-06550: line 3, column 3:
PL/SQL: SQL Statement ignored
ORA-06550: line 9, column 5:
PLS-00103: Encountered the symbol "FUNCTION"
ORA-06550: line 9, column 36:
PLS-00103: Encountered the symbol "VARCHAR2" when expecting one of the following:
(
ORA-06550: line 15, column 3:
PLS-00103: Encountered the symbol "SELECT" when expecting one of the following:
begin function pragma procedure
The symbol "begin" was substituted for "SELECT" to continue.
And also impossible to beautify this code.
Is this feature supported in Version 12.0.5.1828 ?