From: Matt Phillips Date: Tue, 27 Nov 2012 20:45:32 +0000 (-0500) Subject: fixed incorrect is_Literal usage X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0fb8686a710e72b2348c6637f61ff28354ae5cf;p=dbsrgits%2FData-Query.git fixed incorrect is_Literal usage --- diff --git a/lib/Data/Query/Renderer/SQL/Naive.pm b/lib/Data/Query/Renderer/SQL/Naive.pm index 64e5bc2..07a9d50 100644 --- a/lib/Data/Query/Renderer/SQL/Naive.pm +++ b/lib/Data/Query/Renderer/SQL/Naive.pm @@ -234,7 +234,7 @@ sub _handle_op_type_between { if (@args == 3) { my ($lhs, $rhs1, $rhs2) = (map $self->_maybe_parenthesise($_), @args); [ '(', $lhs, $op_name, $rhs1, 'AND', $rhs2, ')' ]; - } elsif (@args == 2 and is_Literal $args[1]->{type}) { + } elsif (@args == 2 and is_Literal $args[1]) { my ($lhs, $rhs) = (map $self->_render($_), @args); [ '(', $lhs, $op_name, $rhs, ')' ]; } else {