Permalink
Browse files

Merge pull request #37 from thecurator/master

Bugfix: non-key, non-index EqualToComparison queries do nothing
  • Loading branch information...
2 parents 1793396 + a28765a commit 3aca2a8820d08277c6e777f27915e660d7faa914 @whoahbot committed Jun 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/dm-redis-adapter/adapter.rb
@@ -245,6 +245,8 @@ def perform_query(query, operand)
find_indexed_matches(subject, value).each do |k|
matched_records << {redis_key_for(query.model) => k, "#{subject.name}" => value}
end
+ else # worst case here, loop through all members, typecast and match
+ search_all_resources(query, operand, subject, matched_records)
end
else # worst case here, loop through all members, typecast and match
search_all_resources(query, operand, subject, matched_records)

0 comments on commit 3aca2a8

Please sign in to comment.