I am trying to use rollbacktosavepoint on my session object and get the following error:
ORA-01086: savepoint 'STARTIMPORT' never established.
My code is something like this
OracleSession1.Savepoint('StartImport');
try
...
if not IsDebug then
begin
if MessageDlg('Save Imported data?',mtInformation,[mbYes, mbNo],0) = mrYes then
begin
OracleSession1.Commit;
end
else
OracleSession1.RollbackToSavepoint('StartImport');
end;
Any ideas on why this error is occurring?
ORA-01086: savepoint 'STARTIMPORT' never established.
My code is something like this
OracleSession1.Savepoint('StartImport');
try
...
if not IsDebug then
begin
if MessageDlg('Save Imported data?',mtInformation,[mbYes, mbNo],0) = mrYes then
begin
OracleSession1.Commit;
end
else
OracleSession1.RollbackToSavepoint('StartImport');
end;
Any ideas on why this error is occurring?