add (very ugly) hack to _construct_object to support function calls in resultsets...
David Kamholz [Wed, 2 Nov 2005 20:28:00 +0000 (20:28 +0000)]
lib/DBIx/Class/ResultSet.pm

index ce28dff..9faf8ba 100644 (file)
@@ -120,7 +120,7 @@ sub _construct_object {
   my ($self, @row) = @_;
   my @cols = @{ $self->{attrs}{cols} };
   s/^me\.// for @cols;
-  @cols = grep { ! /\./ } @cols;
+  @cols = grep { /\(/ or ! /\./ } @cols;
   my $new;
   unless ($self->{attrs}{prefetch}) {
     $new = $self->{class}->_row_to_object(\@cols, \@row);