Closed (fixed)
Project:
EntityFieldQuery Views Backend
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2012 at 08:17 UTC
Updated:
10 Jun 2012 at 16:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
jiivonen commentedDo you have MongoDB as field storage? Or do you get this with MySQL?
I get this with MongoDB but can't decide where to fix it.
Comment #2
cpc commentedI was able to fix this problem by updating the mongodb module in "mongodb_field_storage.module" down in the _mongodb_field_storage_query_value function.
The problem is a case comparison where lowercase 'in' is being compared against uppercase 'IN'.
I changed:
switch ($operator) {to:
switch (strtoupper($operator)) {...and that worked for me.
Someone should commit this update...
Comment #3
roynilanjan commented@CPC is it a hack or you should give a patch?
Comment #4
jiivonen commentedI provided that patch already in february in http://drupal.org/node/1459116 But it was not included. Probably you could go there and give more feed back why it's needed?
Comment #5
chx commentedI will fix it over there.
Comment #6
chx commentedHrm, I was wrong :) the documentation clearly says IN and so I will fix it here.
Comment #7
firebird commentedHere's a quick and dirty patch that fixes the problem for me.
Comment #8
chx commentedThanks for the patch but this IMO should be fixed in the IN handlers themselves (handlers/efq_views_handler_filter_entity_in_operator.inc, handlers/efq_views_handler_filter_field_in_operator.inc, handlers/efq_views_handler_filter_property_in_operator.inc)
Comment #9
jiivonen commentedHow about ALL, STARTS_WITH, CONTAINS and BETWEEN, should we open separate issues about them and their case or include in this one?
Comment #10
chx commentedCheck the alpha. ALL is not supported by EntityFieldQuery, STARTS_WITH, CONTAINS and BETWEEN is implemented.