Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Raising no_data_found

77181Jan 29 2005 — edited Feb 1 2005
Executing anonymous block (see below) does not report ORA-01403 to the host environment.
I am using NCOCI in Delphi, but I had the same problem with ADO.

declare
a varchar2 (100);
begin
select dummy
into a
from dual
where 1= 0;
end;

The following code works as expected:

declare
a varchar2 (100);
begin
select dummy
into a
from dual
where 1= 0;
exception
when no_data_found then
raise_application_error (-20000, SQLERRM);
end;

Thanks for any suggestion, Dab
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2005
Added on Jan 29 2005
5 comments
868 views