X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FStorage%2FDBIHacks.pm;h=32e0ea30e831d1a82388070847de8d6be65733f8;hb=faeb2407c49717d38874b21749659ac2c632bad7;hp=2d10e6c8847434ec5b576859ac4ac5990ace04ac;hpb=468910410c83d9efe407d85a6089d20fd3735d13;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Storage/DBIHacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm index 2d10e6c..32e0ea3 100644 --- a/lib/DBIx/Class/Storage/DBIHacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -273,7 +273,6 @@ sub _resolve_aliastypes_from_select_args { $aliases_by_type->{$type}{$alias} = 1 if ($piece =~ $al_re); } } - } # now loop through unqualified column names, and try to locate them within @@ -308,7 +307,7 @@ sub _resolve_aliastypes_from_select_args { for my $type (keys %$aliases_by_type) { for my $alias (keys %{$aliases_by_type->{$type}}) { $aliases_by_type->{$type}{$_} = 1 - for (map { keys %$_ } @{ $alias_list->{$alias}{-join_path} || [] }); + for (map { values %$_ } @{ $alias_list->{$alias}{-join_path} || [] }); } } @@ -453,7 +452,7 @@ sub _straight_join_to_node { # anyway, and deep cloning is just too fucking expensive # So replace the first hashref in the node arrayref manually my @new_from = ($from->[0]); - my $sw_idx = { map { values %$_ => 1 } @$switch_branch }; + my $sw_idx = { map { (values %$_), 1 } @$switch_branch }; #there's one k/v per join-path for my $j (@{$from}[1 .. $#$from]) { my $jalias = $j->[0]{-alias};