Fix column_info stomping, test coming...
Cory G Watson [Tue, 30 May 2006 21:05:56 +0000 (21:05 +0000)]
lib/DBIx/Class/ResultSource.pm

index 29e17e7..689de7d 100644 (file)
@@ -184,7 +184,7 @@ sub column_info {
         $lc_info->{lc $realcol} = $info->{$realcol};
       }
       foreach my $col ( keys %{$self->_columns} ) {
-        $self->_columns->{$col} = $info->{$col} || $lc_info->{lc $col};
+        $self->_columns->{$col} = { %{ $self->_columns->{$col}}, %{$info->{$col} || $lc_info->{lc $col}} };
       }
     }
   }