Page MenuHomePhabricator

Fix an issue with collation construction on "sort" columns for old MySQL
ClosedPublic

Authored by epriestley on Mar 2 2015, 3:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 7:50 AM
Unknown Object (File)
Thu, Dec 19, 1:49 AM
Unknown Object (File)
Fri, Dec 6, 1:58 AM
Unknown Object (File)
Wed, Dec 4, 7:12 PM
Unknown Object (File)
Sun, Dec 1, 11:50 AM
Unknown Object (File)
Sun, Dec 1, 7:31 AM
Unknown Object (File)
Nov 23 2024, 10:53 PM
Unknown Object (File)
Nov 23 2024, 3:56 PM
Subscribers

Details

Summary

Fixes T7422. We'll currently choose a "binary" charset with a "utf8_general_ci" collation on "sort" columns on older MySQL, which seems to be causing problems.

Choose "utf8" in this case instead.

(I attempted to simplify the logic, too, but that's the only actual change.)

Test Plan

Went back and forth with --disable-utf8mb4 on storage adjust, but this is version dependent so I'm not 100% sure it's the right fix.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix an issue with collation construction on "sort" columns for old MySQL.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.

This is fixing the wrong thing.

Actually, this isn't really causing a problem, but I think it is still worth fixing.

Without it, we get extra adjust adjustments after doing a --disable-utf8mb4 upgrade, after D11929.

btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 2 2015, 5:54 PM
This revision was automatically updated to reflect the committed changes.