From: Justin Guenther Date: Wed, 22 Mar 2006 18:16:27 +0000 (+0000) Subject: fixed unclear documentation regarding context in txn_do() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7f2b7d50fb0ea21a812ddb0cc77153bce58a6e2;p=dbsrgits%2FDBIx-Class-Historic.git fixed unclear documentation regarding context in txn_do() --- diff --git a/lib/DBIx/Class/Schema.pm b/lib/DBIx/Class/Schema.pm index fc28f79..3d63657 100644 --- a/lib/DBIx/Class/Schema.pm +++ b/lib/DBIx/Class/Schema.pm @@ -455,7 +455,9 @@ sub txn_do { $self->txn_begin; # If this throws an exception, no rollback is needed - my $wantarray = wantarray; # Need to save this since it's reset in eval{} + my $wantarray = wantarray; # Need to save this since the context + # inside the eval{} block is independent + # of the context that called txn_do() eval { # Need to differentiate between scalar/list context to allow for