From: Matt S Trout Date: Mon, 23 Sep 2019 02:36:00 +0000 (+0000) Subject: use simple return system for delete.using X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a20a32d6450e2f88fb51e61e83f1db3f7d8a159;p=scpubgit%2FQ-Branch.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] })); }),