[Bast-commits] r9261 - in DBIx-Class/0.08/trunk:
lib/DBIx/Class/CDBICompat t/cdbi
ribasushi at dev.catalyst.perl.org
ribasushi at dev.catalyst.perl.org
Wed Apr 28 12:39:02 GMT 2010
Author: ribasushi
Date: 2010-04-28 13:39:02 +0100 (Wed, 28 Apr 2010)
New Revision: 9261
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/CDBICompat/ColumnCase.pm
DBIx-Class/0.08/trunk/t/cdbi/columns_as_hashes.t
Log:
Fix failing test and some warnings
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/CDBICompat/ColumnCase.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/CDBICompat/ColumnCase.pm 2010-04-28 10:20:01 UTC (rev 9260)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/CDBICompat/ColumnCase.pm 2010-04-28 12:39:02 UTC (rev 9261)
@@ -25,9 +25,15 @@
sub has_many {
my ($class, $rel, $f_class, $f_key, @rest) = @_;
- return $class->next::method($rel, $f_class, ( ref($f_key) ?
- $f_key :
- lc($f_key) ), @rest);
+ return $class->next::method(
+ $rel,
+ $f_class,
+ (ref($f_key) ?
+ $f_key :
+ lc($f_key||'')
+ ),
+ @rest
+ );
}
sub get_inflated_column {
Modified: DBIx-Class/0.08/trunk/t/cdbi/columns_as_hashes.t
===================================================================
--- DBIx-Class/0.08/trunk/t/cdbi/columns_as_hashes.t 2010-04-28 10:20:01 UTC (rev 9260)
+++ DBIx-Class/0.08/trunk/t/cdbi/columns_as_hashes.t 2010-04-28 12:39:02 UTC (rev 9261)
@@ -26,7 +26,7 @@
my $rating = $waves->{rating};
$waves->Rating("PG");
is $rating, "R", 'evaluation of column value is not deferred';
- } qr{^Column 'rating' of 'Film/$waves' was fetched as a hash at \Q$0};
+ } qr{^Column 'rating' of 'Film/$waves' was fetched as a hash at\b};
warnings_like {
is $waves->{title}, $waves->Title, "columns can be accessed as hashes";
More information about the Bast-commits
mailing list