From: Matt S Trout Date: Mon, 16 Apr 2012 13:46:25 +0000 (+0000) Subject: allow '' literals though wtf X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e84286810e61302232818df14ba0a75bb0d5881b;p=dbsrgits%2FData-Query.git allow '' literals though wtf --- diff --git a/lib/Data/Query/Renderer/SQL/Naive.pm b/lib/Data/Query/Renderer/SQL/Naive.pm index 56cdb3b..3d264e7 100644 --- a/lib/Data/Query/Renderer/SQL/Naive.pm +++ b/lib/Data/Query/Renderer/SQL/Naive.pm @@ -314,7 +314,7 @@ sub _render_literal { unless ($dq->{subtype} eq 'SQL') { die "Can't render non-SQL literal"; } - if ($dq->{literal}) { + if (defined($dq->{literal})) { return [ $dq->{literal}, @{$dq->{values}||[]} ];