From: Matt S Trout Date: Wed, 27 Feb 2019 06:27:29 +0000 (+0000) Subject: kill last empty string literal X-Git-Tag: v1.90_01~392 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2f88d4950dbd9ff3fd041c3a1da5b6a75646051c;p=dbsrgits%2FSQL-Abstract.git kill last empty string literal --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index a7b0da5..9d7d4a3 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') {