From: Matt S Trout Date: Mon, 23 Sep 2019 02:29:25 +0000 (+0000) Subject: clean up EC _expand_select X-Git-Tag: v2.000000~3^2~115 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b5c13e0ac5a71e1307d7725fc0c5f904fad80f49;p=dbsrgits%2FSQL-Abstract.git clean up EC _expand_select --- diff --git a/lib/SQL/Abstract/ExtraClauses.pm b/lib/SQL/Abstract/ExtraClauses.pm index 7bafdba..e3d1dd6 100644 --- a/lib/SQL/Abstract/ExtraClauses.pm +++ b/lib/SQL/Abstract/ExtraClauses.pm @@ -122,8 +122,8 @@ sub apply_to { } sub _expand_select { - my ($self, $orig, $before_setop) = (shift, shift, shift); - my $exp = $self->sqla->$orig(@_); + my ($self, $orig, $before_setop, @args) = @_; + my $exp = $self->sqla->$orig(@args); return $exp unless my $setop = (my $sel = $exp->{-select})->{setop}; if (my @keys = grep $sel->{$_}, @$before_setop) { my %inner; @inner{@keys} = delete @{$sel}{@keys};