From: Matt S Trout Date: Wed, 27 Feb 2019 06:27:29 +0000 (+0000) Subject: kill last empty string literal X-Git-Tag: v2.000000~3^2~413 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d94c594ecdafc52413f706f31c20c5958cfc2282;p=dbsrgits%2FSQL-Abstract.git kill last empty string literal --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 092598b..2600fe9 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -517,7 +517,7 @@ sub _expand_expr { sort keys %$expr ] }; } - return { -literal => [ '' ] } unless keys %$expr; + return undef unless keys %$expr; return $self->_expand_expr_hashpair(%$expr, $logic); } if (ref($expr) eq 'ARRAY') {