projects
/
dbsrgits/DBIx-Class.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
22cbbca
)
allow undef for _setup_connect_do
Rafael Kitover [Sat, 13 Jun 2009 15:31:52 +0000 (15:31 +0000)]
lib/DBIx/Class/Storage/DBI.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Storage/DBI.pm
b/lib/DBIx/Class/Storage/DBI.pm
index
a049167
..
26fcbbb
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI.pm
+++ b/
lib/DBIx/Class/Storage/DBI.pm
@@
-478,8
+478,11
@@
sub _setup_connect_do {
my $val = shift;
- $self->throw_exception("The value of $opt cannot be 'undef'")
- unless defined $val;
+ if (not defined $val) {
+ $self->$accessor(undef);
+ $self->$store(undef);
+ return;
+ }
my @store;