From: Matt S Trout Date: Mon, 22 Apr 2019 03:51:57 +0000 (+0000) Subject: last use of row for non-rowtype X-Git-Tag: v2.000000~3^2~178 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=60757815bd0f3d217c61b6fb457f022ff7afbdfd;p=dbsrgits%2FSQL-Abstract.git last use of row for non-rowtype --- diff --git a/lib/SQL/Abstract/ExtraClauses.pm b/lib/SQL/Abstract/ExtraClauses.pm index 386d1e3..0be3021 100644 --- a/lib/SQL/Abstract/ExtraClauses.pm +++ b/lib/SQL/Abstract/ExtraClauses.pm @@ -217,10 +217,10 @@ sub _expand_join { $proto{to} = $self->expand_expr({ -as => [ $proto{to}, $as ] }); } if (defined($proto{using}) and ref(my $using = $proto{using}) ne 'HASH') { - $proto{using} = { -row => [ + $proto{using} = [ map [ $self->expand_expr($_, -ident) ], ref($using) eq 'ARRAY' ? @$using: $using - ] }; + ]; } my %ret = map +($_ => $self->expand_expr($proto{$_}, -ident)), sort keys %proto; @@ -245,7 +245,7 @@ sub _render_join { ) : ()), ($args->{using} ? ( $self->format_keyword('using'), - $args->{using}, + '(', $args->{using}, ')', ) : ()), ); return $self->join_query_parts(' ', @parts);