$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;
) : ()),
($args->{using} ? (
$self->format_keyword('using'),
- $args->{using},
+ '(', $args->{using}, ')',
) : ()),
);
return $self->join_query_parts(' ', @parts);