Closed (fixed)
Project:
Views (for Drupal 7)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2008 at 12:42 UTC
Updated:
10 Oct 2008 at 01:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
christefano commentedIt's taken me two days to figure out that this was the reason my searches weren't working.
Comment #2
christefano commentedThis is a significant difference from the core search in Drupal, so I'm looking at this as a bug.
Comment #3
Anonymous (not verified) commentedthis looks like views wasn’t handling the case where a query that had been processed but still contained strings that db_query uses for arg substitution where passed to db_query. this led to unintended substitutions.
for example, views would pass this sql:
to db_query, and the '%s' would get replaced with the first element of $args, which if that happened to be node.title, mysql would see:
looks like case sensitive, but isn’t.
a possible fix just converts '%(s|d|f|b)' --> '%%(s|d|b|f)' before the query is passed to db_query by views like this in
views_build_view:Comment #4
christefano commentedHere is Justin's fix in patch form. It applies against 5.x-1.x-dev and 5.x-1.6.
Comment #5
christefano commentedNeeds review.
Comment #6
merlinofchaos commentedThis bug was fixed in -dev ages ago.
Comment #7
christefano commentedThat this was fixed "ages ago" makes me want a new release in a big way. Meanwhile, thanks for the info, merlinofchaos.
Comment #8
merlinofchaos commentedsun posted an issue with a list of what he wants to do for a 1.7 release. If you'd like to help, see http://drupal.org/node/208855
The list is shockingly long =)
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.