1

If USER1 does some work, adds a savepoint SP1 but does not commit.

Then, USER2 does some other work, and tries to rollback to SP1.

Would there be an error? Thanks

Simon Tran
  • 1,461
  • 1
  • 11
  • 28

1 Answers1

4

Yes, there would be an error.

A savepoint is only visible and valid inside the transaction that created the savepoint.

So a transaction can only rollback to a savepoint that was created in that transaction.