Closed (fixed)
Project:
Drupal core
Component:
locale.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
18 Oct 2004 at 16:13 UTC
Updated:
7 Oct 2005 at 22:20 UTC
Jump to comment: Most recent file
here's the patch
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | locale-inc.patch | 739 bytes | killes@www.drop.org |
| #4 | pgsql_locales_fix_0.diff | 2.64 KB | adrian |
| #3 | pgsql_taxo_bug_0.diff | 1.96 KB | adrian |
| pgsql_locales_fix.diff | 2.09 KB | adrian |
Comments
Comment #1
killes@www.drop.org commentedThe patch should not be neccessary becuase the location field is pruned to contain 128 chars. But - at least for pgsql- it doesn#t hurt either.
Comment #2
adrian commentedhere is an updated patch, which fixes the problem with too many unique restraints on locales_target.
Comment #3
adrian commentederr. here is the patch.
Comment #4
adrian commentedhere is a corrected patch, it contained some cruft fromt he taxonomy patch i made earlier
Comment #5
gábor hojtsyKilles, the 128 char check is improperly implemented (the length is checked before a new substring of unknown length is added), so that check needs to be fixed in the first place.
Comment #6
gábor hojtsyKilles, the 128 char check is improperly implemented (the length is checked before a new substring of unknown length is added), so that check needs to be fixed in the first place.
Comment #7
killes@www.drop.org commentedHow about this?
Comment #8
Steven commentedThe first patch was apparently applied to CVS already. But it seems that in the pgsql code, the temporary column "old_location" is not dropped?
Still, we should decide on this... either we:
- Remove the substring checking completely and change "location" to text in both pgsql and mysql.
or
- We go back to a 128-char location, change the db columns back, and implement killes' improved checker.
By the way killes, I think the
strlen($comm) < 128in the while() condition is unnecessary with your later check in place.Comment #9
Steven commentedI don't think there's going to be any more follow-ups on this. Committed.
Comment #10
(not verified) commentedComment #11
(not verified) commentedComment #12
(not verified) commentedComment #13
(not verified) commentedComment #14
(not verified) commented