Home > database > In a stored procedure call a stored procedure, after the rollback doesn't work
In a stored procedure call a stored procedure, after the rollback doesn't work
Time:09-15
I insert a few records in the stored procedure sp1, and then call the stored procedure sp2 Then sp2 triggered is unusual, I stopped in the sp1 is unusual, call rollback after exit Query data discovery, insert a few data in the sp1 didn't rollback success
Insert into t1 values (x, y, z); Insert into t2 values (x, y, z);
The begin R:=0; Sp2 (p1, p2); R:=1; The exception The when others then null; -- tried to rollback here, there is no success end;
If r!=1 then The rollback. -- not the rollback perform return; End the if;