Throw exception on invalidated session if in a transaction.
Rafael Kitover [Fri, 13 Feb 2009 11:29:37 +0000 (11:29 +0000)]
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm

index 9f564e3..cb5d62b 100644 (file)
@@ -94,6 +94,7 @@ sub _dbh_execute {
       $self->disconnect;
 
       $self->throw_exception($exception) if $self->{_in_dbh_do};
+      $self->throw_exception($exception) if $self->transaction_depth;
 
       $self->ensure_connected;
     } elsif ($exception =~ /ORA-01003/) { # invalid cursor