Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: adrian commentedhere is an updated patch, which fixes the problem with too many unique restraints on locales_target.
Comment #3
adrian CreditAttribution: adrian commentederr. here is the patch.
Comment #4
adrian CreditAttribution: 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 CreditAttribution: killes@www.drop.org commentedHow about this?
Comment #8
Steven CreditAttribution: 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) < 128
in the while() condition is unnecessary with your later check in place.Comment #9
Steven CreditAttribution: Steven commentedI don't think there's going to be any more follow-ups on this. Committed.
Comment #10
(not verified) CreditAttribution: commentedComment #11
(not verified) CreditAttribution: commentedComment #12
(not verified) CreditAttribution: commentedComment #13
(not verified) CreditAttribution: commentedComment #14
(not verified) CreditAttribution: commented