Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Why update SQL in procedure did not commit?
I have an ASP page calling a procedure of a package to update records.
The procedure has structure like following
PROCEDURE UpdateOrder
(p_orderID IN table.column%TYPE, .. p_errFlag OUT NUMBER, p_advMsg OUT VARCHAR2) IS
remarks = p_remarks
WHERE order_id = p_orderID;
SELECT error_msg
INTO v_advMsg
FROM requests ;
p_advMsg:= v_advMsg;
..
EXCEPTION
...
END UpdateOrder;
In turn the UPDATE requests_view triggers a trigger doing the actual Updating a new error_msg. Even I received the updated message as p_advMsg on web page, when I query the same orderID again, the record still retains the pre-updated error msg. I have to put in the recObj.CommitTrans from ASP to commit, where recObj is the recordSet object of ASP. Is that when a procedure finish it task at database side, all the SQL schemes are supposed to be committed? My database is 8i on NT 4 box. Can anyone explain why?
C Chang Received on Wed Dec 04 2002 - 23:15:06 CST
![]() |
![]() |