I'm having a problem with a simple function that I created.
create or replace FUNCTION dry_login (
username IN VARCHAR2,
password IN VARCHAR2 )
RETURN BOOLEAN
IS
l_user varchar2(70);
l_pwd varchar2(70);
BEGIN
SELECT usuario_nome, usuario_senha
INTO l_user, l_pwd
FROM dry_usuario
WHERE usuario_nome = username;
IF (l_pwd = password) and (l_user = username) THEN
RETURN TRUE;
ELSE
RETURN FALSE;
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN RETURN FALSE;
END;
Give the following error:
ORA-06550: line 4, column 23: PLS-00306: Incorrect number of argument types in call to 'DRY_LOGIN' ORA-06550: row 4, column 1: PL / SQL: Statement ignored
Someone help me find this error, please. Thank you. Att Oliver