Is following statement from doc: valid?
If you exit a stored subprogram with an unhandled exception, PL/SQL does not assign values to OUT parameters, and does not do any rollback
As per the statement ROLLBACK
should not happen when my stored procedure testy
raise an exception unhandled. And as per document insert 3, insert 2 should be successful, but no insert are successful.
create table mytable (num int not null primary key);
insert into mytable values(1);
create or replace procedure testy is
begin
insert into mytable values(2);
insert into mytable values(1); //throws error: ORA-00001: unique constraint (SRISRI1.SYS_C0011447) violated
end;
create or replace procedure testp is
begin
insert into mytable values(3);
testy;
insert into mytable values(4);
end;
exec testp;
select * from mytable;
mytable
_______
1