projects
/
dbsrgits/DBIx-Class-Historic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
f32eb11
)
and fix the bloody thing
Matt S Trout [Thu, 29 Jun 2006 22:23:54 +0000 (22:23 +0000)]
lib/DBIx/Class/Schema.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema.pm
b/lib/DBIx/Class/Schema.pm
index
7926e92
..
40ba39f
100644
(file)
--- a/
lib/DBIx/Class/Schema.pm
+++ b/
lib/DBIx/Class/Schema.pm
@@
-555,6
+555,8
@@
context and it will behave as expected.
sub txn_do {
my ($self, $coderef, @args) = @_;
+ $self->storage or $self->throw_exception
+ ('txn_do called on $schema without storage');
ref $coderef eq 'CODE' or $self->throw_exception
('$coderef must be a CODE reference');