From: Matt S Trout Date: Mon, 23 Sep 2019 02:36:00 +0000 (+0000) Subject: use simple return system for delete.using X-Git-Tag: v2.000000~3^2~114 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=adda3bd8e5e9b1cf1f882272252da6b7818a2a92;p=dbsrgits%2FSQL-Abstract.git use simple return system for delete.using --- diff --git a/lib/SQL/Abstract/ExtraClauses.pm b/lib/SQL/Abstract/ExtraClauses.pm index e3d1dd6..22817ce 100644 --- a/lib/SQL/Abstract/ExtraClauses.pm +++ b/lib/SQL/Abstract/ExtraClauses.pm @@ -62,9 +62,7 @@ sub apply_to { $sqla->clause_expanders( 'update.from' => $self->cb('_expand_select_clause_from'), - 'delete.using' => $self->cb(sub { - +(using => $_[0]->_expand_from_list(undef, $_[2])); - }), + 'delete.using' => $self->cb('_expand_from_list'), 'insert.rowvalues' => $self->cb(sub { +(from => $_[0]->expand_expr({ -values => $_[2] })); }),