[Bast-commits] r6002 - DBIx-Class/0.08/trunk/lib/DBIx/Class
arcanez at dev.catalyst.perl.org
arcanez at dev.catalyst.perl.org
Tue Apr 28 20:20:42 GMT 2009
Author: arcanez
Date: 2009-04-28 21:20:42 +0100 (Tue, 28 Apr 2009)
New Revision: 6002
Modified:
DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
Log:
fix for columns => [ ... ] issue
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2009-04-28 16:52:12 UTC (rev 6001)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm 2009-04-28 20:20:42 UTC (rev 6002)
@@ -2404,12 +2404,20 @@
# build columns (as long as select isn't set) into a set of as/select hashes
unless ( $attrs->{select} ) {
@colbits = map {
- ( ref($_) eq 'HASH' ) ? $_
- : {
- (
- /^\Q${alias}.\E(.+)$/ ? $1
- : $_
- ) => ( /\./ ? $_ : "${alias}.$_" )
+ ( ref($_) eq 'HASH' )
+ ? $_
+ : {
+ (
+ /^\Q${alias}.\E(.+)$/
+ ? "$1"
+ : "$_"
+ )
+ =>
+ (
+ /\./
+ ? "$_"
+ : "${alias}.$_"
+ )
}
} ( ref($attrs->{columns}) eq 'ARRAY' ) ? @{ delete $attrs->{columns}} : (delete $attrs->{columns} || $source->columns );
}
More information about the Bast-commits
mailing list