where_hashpair is better than recurse_where op_op
Arthur Axel 'fREW' Schmidt [Sat, 29 Jan 2011 15:20:30 +0000 (09:20 -0600)]
lib/SQL/Abstract.pm

index 61b537b..eb50d98 100644 (file)
@@ -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;