my ($self, undef, $values) = @_;
my ($v_sql, @bind) = $self->join_query_parts(
', ',
- map [ $self->render_aqt($_) ],
- ref($values) eq 'ARRAY' ? @$values : $values
+ ref($values) eq 'ARRAY' ? @$values : $values
);
my $sql = $self->_sqlcase('values').' '.$v_sql;
return (
my ($self, $setop, $args) = @_;
$self->join_query_parts(
' '.$self->format_keyword(join '_', $setop, ($args->{type}||())).' ',
- map [ $self->render_aqt($_) ], @{$args->{queries}}
+ @{$args->{queries}}
);
}) for qw(union intersect except);
[ $self->join_query_parts(' ',
[ $self->_render_alias($alias) ],
[ $self->format_keyword('as') ],
- [ $self->render_aqt($query) ],
+ $query,
) ]
} @{$with->{queries}}
) ];
sub _render_from_list {
my ($self, undef, $list) = @_;
- return $self->join_query_parts(', ', map [ $self->render_aqt($_) ], @$list);
+ return $self->join_query_parts(', ', @$list);
}
sub _render_join {
my ($as, @cols) = @$args;
return (@cols
? $self->join_query_parts('',
- [ $self->render_aqt($as) ],
+ $as,
[ '(' ],
[ $self->join_query_parts(
', ',
- map [ $self->render_aqt($_) ], @cols
+ @cols
) ],
[ ')' ],
)