Hi All

I have following function returning refcursor:

create or replace function Lemp(eno in number)
return cowave_pack1.cursortype is
l_cursor cowave_pack1.cursorType;
begin
open l_cursor for
select ename, empno, job from emp
where empno = eno;
return l_cursor;
exception when no_data_found then
dbms_output.put_line('t1');
end;
/

This function on execution returns data correctly if I pass 
correct empno but does not go to the exception block if I enter th 
wrong value. What is required to be done if I want to catch this 
exception.

Amol
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Nandu  Garg
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to