add shallow copy of $attrs in ResultSet->new
David Kamholz [Wed, 22 Nov 2006 22:09:07 +0000 (22:09 +0000)]
lib/DBIx/Class/ResultSet.pm

index 61764b8..ce93efa 100644 (file)
@@ -86,6 +86,7 @@ sub new {
 
   my ($source, $attrs) = @_;
   #weaken $source;
+  $attrs = { %{$attrs||{}} };
 
   if ($attrs->{page}) {
     $attrs->{rows} ||= 10;