Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is ROLLBACK automatic?

Status
Not open for further replies.

siraj777

Programmer
Aug 22, 2002
27
IN
Using PowerBuilder 8 with Oracle 9.

dw_1.DeleteRow(li_row)
dw_1.Update()
COMMIT;

Is the ROLLBACK automatic when COMMIT FAILS? or do we need the following statement?

If sqlca.sqlcode = -1 Then ROLLBACK
 
it is set at transaction object level
Ex: SQLCA.AutoCommit = True
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top