projects
/
dbsrgits/Data-Query.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
07b0f7e
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/Data/Query/Renderer/SQL/Naive.pm
b/lib/Data/Query/Renderer/SQL/Naive.pm
index
56cdb3b
..
3d264e7
100644
(file)
--- 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}||[]}
];