Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2008 at 21:06 UTC
Updated:
30 Jul 2010 at 15:43 UTC
Jump to comment: Most recent file
Comments
Comment #1
catchThis is blocking #279851: Replace LOWER() with db_select() and LIKE() where possible
Comment #2
catchTrivial patch, I can't reproduce the specific bug that Damz got in the other issue, but it applies fine, breaks nothing, and my non-utf-8 aware shell noticed a difference, so marking rtbc.
Comment #3
damien tournoud commentedComment #4
catchThis really is critical ;)
Tested this regression test with and without the we-love-utf8-names patch and it detects the bug successfully.
This patch just rolls them into one, please don't credit on commit.
Comment #5
Crell commenteddb_fetch_object() is deprecated, so the regression test is wrong. :-( It should instead be:
Also, let's put a comment on the query to say why we're doing it.
Comment #6
Crell commentedCNW, but I agree on critical.
Comment #7
maartenvg commentedLike this?
Comment #8
Crell commentedYep. I'd prefer a comment on the line in the driver, but I leave that to the committers to decide. (Haven't tested yet, just visual review.)
Comment #9
Crell commentedAttached patch cleans up the Insert query in the unit test to use the new builder and adds comments to both of the MySQL config lines (this and the strict mode line). Test passes. Setting RTBC to get it into webchick's queue even though I am posting the patch, since this is a blocker. :-)
Comment #10
dries commentedCommitted to CVS HEAD. Thanks! And 'yay' for the tests ...
Comment #11
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #12
pierrepaul commentedShouldn't we use mysql(i)_set_charset('utf8') ?