From: Matt S Trout Date: Mon, 22 Apr 2019 03:51:57 +0000 (+0000) Subject: last use of row for non-rowtype X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=13c99dad784e2b300cfad09b22b70bd2d1ede609;p=scpubgit%2FQ-Branch.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);