Correct scoping of savepoint example
Merge pull request #3763 from dcramer/patch-2

Correct scoping of savepoint example