OracleScript not raising NO_DATA_FOUND

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Huetti
Posts: 1
Joined: Wed 11 Jan 2012 13:33

OracleScript not raising NO_DATA_FOUND

Post by Huetti » Wed 11 Jan 2012 13:51

I'm executing the following script (just for demo purposes) using the OracleScript class.

Code: Select all

declare
i number;
begin
    select 1 into i from dual where 0=1;
end;
Doing so should lead to a NO_DATA_FOUND exception (when executing with SQLDeveloper/Toad...) but not when calling Execute().
Is there an event which is fired in case of an NO_DATA_FOUND or am I missing something?

Kind regards
Huetti

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Thu 12 Jan 2012 15:33


Post Reply