projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
1f5bf32
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
b/lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
index
9f564e3
..
cb5d62b
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
+++ b/
lib/DBIx/Class/Storage/DBI/Oracle/Generic.pm
@@
-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