From: Peter Rabbitson Date: Mon, 8 Mar 2010 21:12:07 +0000 (+0000) Subject: Simplify a bit X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e950109429f5ea62c6004d31e9ec54d1c9b518e9;p=scpubgit%2FQ-Branch.git Simplify a bit --- diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm index 99936b8..e90208c 100644 --- a/lib/SQL/Abstract.pm +++ b/lib/SQL/Abstract.pm @@ -565,22 +565,6 @@ sub _where_op_NEST { $self->_SWITCH_refkind($v, { - ARRAYREF => sub { - return $self->_where_ARRAYREF($v, ''); - }, - - HASHREF => sub { - return $self->_where_HASHREF($v); - }, - - SCALARREF => sub { # literal SQL - return ($$v); - }, - - ARRAYREFREF => sub { # literal SQL - return @{${$v}}; - }, - SCALAR => sub { # permissively interpreted as SQL belch "literal SQL should be -nest => \\'scalar' " . "instead of -nest => 'scalar' "; @@ -590,6 +574,11 @@ sub _where_op_NEST { UNDEF => sub { puke "-$op => undef not supported"; }, + + FALLBACK => sub { + $self->_recurse_where ($v); + }, + }); }