around _format_join_keyword => sub {
my ($orig, $self) = (shift, shift);
my ($dq) = @_;
- if ($self->needs_inner_join and $dq->{on} and !$dq->{outer}) {
+ if ($dq->{'Data::Query::Renderer::SQL::MySQL.straight_join'}) {
+ return $self->_format_keyword('STRAIGHT_JOIN');
+ } elsif ($self->needs_inner_join and $dq->{on} and !$dq->{outer}) {
return $self->_format_keyword('INNER JOIN');
}
return $self->$orig(@_);