[Bast-commits] r6518 - DBIx-Class/0.08/trunk/lib/DBIx/Class

ribasushi at dev.catalyst.perl.org ribasushi at dev.catalyst.perl.org
Fri Jun 5 14:28:58 GMT 2009


Author: ribasushi
Date: 2009-06-05 14:28:58 +0000 (Fri, 05 Jun 2009)
New Revision: 6518

Modified:
   DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
Log:
This was dumb - of course I want a copy
Otherwise the next serach_related will work with a contaminated seen_joins

Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm	2009-06-05 04:34:25 UTC (rev 6517)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/ResultSet.pm	2009-06-05 14:28:58 UTC (rev 6518)
@@ -2437,7 +2437,7 @@
   my $from = $attrs->{from}
     || [ { $attrs->{alias} => $source->from } ];
 
-  my $seen = $attrs->{seen_join} || {};
+  my $seen = { %{$attrs->{seen_join} || {} } };
 
   # we need to take the prefetch the attrs into account before we
   # ->_resolve_join as otherwise they get lost - captainL




More information about the Bast-commits mailing list