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
F14086683: D11928.id28746.diff
Sat, Nov 23, 3:56 PM
F14082152: D11928.id28746.diff
Fri, Nov 22, 10:58 PM
F14081911: D11928.id28746.diff
Fri, Nov 22, 10:16 PM
F14081909: D11928.id28734.diff
Fri, Nov 22, 10:16 PM
F14081904: D11928.id.diff
Fri, Nov 22, 10:16 PM
F14081846: D11928.diff
Fri, Nov 22, 10:00 PM
Unknown Object (File)
Mon, Nov 18, 3:38 PM
Unknown Object (File)
Thu, Nov 14, 10:55 AM
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.