Really really fail if the savepoint is not on the stack
Paul Mooney [Thu, 10 Mar 2016 11:16:22 +0000 (11:16 +0000)]
lib/DBIx/Class/Storage.pm

index 7a2ef13..893d022 100644 (file)
@@ -438,7 +438,7 @@ sub svp_release {
     };
 
     $self->throw_exception ("Savepoint '$name' does not exist")
-      unless $svp;
+      unless $svp and $svp eq $name;
 
     $self->savepoints(\@stack); # put back what's left
   }