my $type;
if ($force_left) {
$type = 'left';
- } else {
- $type = $rel_info->{attrs}{join_type} || '';
- $force_left = 1 if lc($type) eq 'left';
+ }
+ else {
+ $type = $rel_info->{attrs}{join_type};
+ $force_left = 1 if lc($type||'') eq 'left';
}
my $rel_src = $self->related_source($join);
$join_type =~ s/^\s+ | \s+$//xg;
}
- $join_type ||= $self->_default_jointype;
+ $join_type = $self->_default_jointype if not defined $join_type;
my $join_clause = sprintf ('%s JOIN ',
$join_type ? ' ' . uc($join_type) : ''