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!

checking status of COMMIT

Status
Not open for further replies.

siraj777

Programmer
Aug 22, 2002
27
IN
Working on PowerBuilder 8 with Oracle 9

dw_1.DeleteRow(li_row); // Deleting row

If dw_1.Update() = 1 Then // Updating the table
COMMIT USING SQLCA; // Commit
End If

// DO I need to write the below line of code
If SQLCA.SQLCODE = -1 Then
ROLLBACK USING SQLCA;
END IF
 
It is always good practice to check the SQL return codes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top