Hello,
I'm trying to use the savepoints in delphi 5 that way:
1) when the event form1.onshow ocurrs execute the line datamodule2.OracleSession1.Savepoint('s');
2) let the user do inserts & posts on a table
3) when the user closes the form, execute the following lines:
if messagedlg('confirm new records?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
datamodule2.OracleSession1.Commit;
else
datamodule2.oraclesession1.
RollbackToSavepoint('s');
and an error ocurred:
ORA-01086: Savepoint 'S' never established
how do i have to use correctly the savepoints?
I'm trying to use the savepoints in delphi 5 that way:
1) when the event form1.onshow ocurrs execute the line datamodule2.OracleSession1.Savepoint('s');
2) let the user do inserts & posts on a table
3) when the user closes the form, execute the following lines:
if messagedlg('confirm new records?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then
datamodule2.OracleSession1.Commit;
else
datamodule2.oraclesession1.
RollbackToSavepoint('s');
and an error ocurred:
ORA-01086: Savepoint 'S' never established
how do i have to use correctly the savepoints?