allow '' literals though wtf
Matt S Trout [Mon, 16 Apr 2012 13:46:25 +0000 (13:46 +0000)]
lib/Data/Query/Renderer/SQL/Naive.pm

index 56cdb3b..3d264e7 100644 (file)
@@ -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}||[]}
     ];