From: Peter Rabbitson Date: Thu, 12 Nov 2009 08:21:04 +0000 (+0000) Subject: Saner naming/comments X-Git-Tag: v0.08116~141^2~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7eb76996314f77de7ab9e2f346dd14a9ccc53896;p=dbsrgits%2FDBIx-Class.git Saner naming/comments --- diff --git a/lib/DBIx/Class/Storage/DBI.pm b/lib/DBIx/Class/Storage/DBI.pm index 8171f31..96a9478 100644 --- a/lib/DBIx/Class/Storage/DBI.pm +++ b/lib/DBIx/Class/Storage/DBI.pm @@ -4,7 +4,7 @@ package DBIx::Class::Storage::DBI; use strict; use warnings; -use base qw/DBIx::Class::Storage::DBI::Hacks DBIx::Class::Storage/; +use base qw/DBIx::Class::Storage::DBIHacks DBIx::Class::Storage/; use mro 'c3'; use Carp::Clan qw/^DBIx::Class/; diff --git a/lib/DBIx/Class/Storage/DBI/Hacks.pm b/lib/DBIx/Class/Storage/DBIHacks.pm similarity index 97% rename from lib/DBIx/Class/Storage/DBI/Hacks.pm rename to lib/DBIx/Class/Storage/DBIHacks.pm index 5e0bb53..4481a2e 100644 --- a/lib/DBIx/Class/Storage/DBI/Hacks.pm +++ b/lib/DBIx/Class/Storage/DBIHacks.pm @@ -1,9 +1,9 @@ -package DBIx::Class::Storage::DBI::Hacks; +package DBIx::Class::Storage::DBIHacks; # # This module contains code that should never have seen the light of day, # does not belong in the Storage, or is otherwise unfit for public -# display. The arrival of SQLA2 should immediatelyt oboslere 90% of this +# display. The arrival of SQLA2 should immediately oboslete 90% of this # use strict; @@ -360,7 +360,7 @@ sub _straight_join_to_node { || ! $from->[0]{-alias} || - $from->[0]{-alias} eq $alias + $from->[0]{-alias} eq $alias # this last bit means $alias is the head of $from - nothing to do ); # find the current $alias in the $from structure @@ -373,13 +373,13 @@ sub _straight_join_to_node { } } - # something else went wrong + # something else went quite wrong return $from unless $switch_branch; # So it looks like we will have to switch some stuff around. # local() is useless here as we will be leaving the scope # anyway, and deep cloning is just too fucking expensive - # So replace the inner hashref manually + # So replace the first hashref in the node arrayref manually my @new_from = ($from->[0]); my $sw_idx = { map { $_ => 1 } @$switch_branch };