projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
a63219b
)
Make throw_exception in RS a bit more forgiving too
Ash Berlin [Tue, 11 Mar 2008 15:10:50 +0000 (15:10 +0000)]
lib/DBIx/Class/ResultSet.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/ResultSet.pm
b/lib/DBIx/Class/ResultSet.pm
index
b30efa2
..
011d7da
100644
(file)
--- a/
lib/DBIx/Class/ResultSet.pm
+++ b/
lib/DBIx/Class/ResultSet.pm
@@
-2132,7
+2132,7
@@
See L<DBIx::Class::Schema/throw_exception> for details.
sub throw_exception {
my $self=shift;
- if (ref $self) {
+ if (ref $self && $self->_source_handle->schema) {
$self->_source_handle->schema->throw_exception(@_)
} else {
croak(@_);