I am getting a runtime error for my function below. I am not sure why as I am passing in integers but it is complaining about strings.
CREATE OR REPLACE FUNCTION FOO
(
col1 IN NUMBER,
col2 IN NUMBER
)
RETURN BOOLEAN
IS
BAR BOOLEAN;
BEGIN
DECLARE FOO NUMBER;
BEGIN
SELECT 1 INTO FOO FROM DUAL;
END;
RETURN BAR;
END FOO;
SELECT FOO(1, 1) FROM DUAL;
ORA-06552: PL/SQL: Statement ignored ORA-06553: PLS-382: expression is of wrong type 06552. 00000 - "PL/SQL: %s" *Cause:
*Action: Error at Line: 1 Column: 7