[Bast-commits] r6660 -
DBIx-Class/0.08/branches/on_connect_call/lib/DBIx/Class/Storage
caelum at dev.catalyst.perl.org
caelum at dev.catalyst.perl.org
Sat Jun 13 15:31:52 GMT 2009
Author: caelum
Date: 2009-06-13 15:31:52 +0000 (Sat, 13 Jun 2009)
New Revision: 6660
Modified:
DBIx-Class/0.08/branches/on_connect_call/lib/DBIx/Class/Storage/DBI.pm
Log:
allow undef for _setup_connect_do
Modified: DBIx-Class/0.08/branches/on_connect_call/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/branches/on_connect_call/lib/DBIx/Class/Storage/DBI.pm 2009-06-13 11:35:33 UTC (rev 6659)
+++ DBIx-Class/0.08/branches/on_connect_call/lib/DBIx/Class/Storage/DBI.pm 2009-06-13 15:31:52 UTC (rev 6660)
@@ -478,8 +478,11 @@
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;
More information about the Bast-commits
mailing list