From: Arthur Axel 'fREW' Schmidt <frioux@gmail.com>
Date: Sat, 29 Jan 2011 15:20:30 +0000 (-0600)
Subject: where_hashpair is better than recurse_where
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fop_op;p=dbsrgits%2FSQL-Abstract.git

where_hashpair is better than recurse_where
---

diff --git a/lib/SQL/Abstract.pm b/lib/SQL/Abstract.pm
index 61b537b..eb50d98 100644
--- a/lib/SQL/Abstract.pm
+++ b/lib/SQL/Abstract.pm
@@ -1010,7 +1010,8 @@ sub _where_generic_FUNC {
          return ($sql, @bind);
        },
        HASHREF => sub {
-         $self->_recurse_where( $val );
+         my $method = $self->_METHOD_FOR_refkind("_where_hashpair", $val);
+         $self->$method('', $val);
        }
     });
     push @all_sql, $sql;