From: Matt S Trout Date: Tue, 8 Nov 2005 17:25:02 +0000 (+0000) Subject: Added fix to avoid undef warnings in CDBICompat stringify X-Git-Tag: v0.05005~179 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2441e56f45b903491252be04eda67613d20f73e8;p=dbsrgits%2FDBIx-Class.git Added fix to avoid undef warnings in CDBICompat stringify --- diff --git a/Changes b/Changes index 1d31a74..32d7482 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for DBIx::Class +0.03004 + - Added an || '' to the CDBICompat stringify to avoid null warnings - Updated name section for manual pods 0.03003 2005-11-03 17:00:00 diff --git a/lib/DBIx/Class.pm b/lib/DBIx/Class.pm index 0d2f400..b1b7249 100644 --- a/lib/DBIx/Class.pm +++ b/lib/DBIx/Class.pm @@ -6,7 +6,7 @@ use warnings; use vars qw($VERSION); use base qw/DBIx::Class::Componentised/; -$VERSION = '0.03003'; +$VERSION = '0.03004'; 1; diff --git a/lib/DBIx/Class/CDBICompat/Stringify.pm b/lib/DBIx/Class/CDBICompat/Stringify.pm index 7a7ea7b..1a05b31 100644 --- a/lib/DBIx/Class/CDBICompat/Stringify.pm +++ b/lib/DBIx/Class/CDBICompat/Stringify.pm @@ -15,7 +15,7 @@ sub stringify_self { my $self = shift; my @cols = $self->columns('Stringify'); @cols = $self->primary_column unless @cols; - my $ret = join "/", map { $self->get_column($_) } @cols; + my $ret = join "/", map { $self->get_column($_) || '' } @cols; return $ret || ref $self; }