$self->render_aqt($setop);
}));
- $sqla->renderer($_ => $self->cb(sub {
- my ($self, $setop, $args) = @_;
- $self->join_query_parts(
- ' '.$self->format_keyword(join '_', $setop, ($args->{type}||())).' ',
- @{$args->{queries}}
- );
- })) for qw(union intersect except);
+ $sqla->renderer($_ => $self->cb('_render_setop'))
+ for qw(union intersect except);
my $setop_expander = $self->cb(sub {
my ($self, $setop, $args) = @_;
);
}
+sub _render_setop {
+ my ($self, $setop, $args) = @_;
+ $self->join_query_parts(
+ ' '.$self->format_keyword(join '_', $setop, ($args->{type}||())).' ',
+ @{$args->{queries}}
+ );
+}
+
1;