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)
Sat, Nov 23, 10:53 PM
Unknown Object (File)
Sat, Nov 23, 3:56 PM
Unknown Object (File)
Fri, Nov 22, 10:58 PM
Unknown Object (File)
Fri, Nov 22, 10:16 PM
Unknown Object (File)
Fri, Nov 22, 10:16 PM
Unknown Object (File)
Fri, Nov 22, 10:16 PM
Unknown Object (File)
Fri, Nov 22, 10:00 PM
Unknown Object (File)
Mon, Nov 18, 3:38 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
Branch
storage1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4704
Build 4718: [Placeholder Plan] Wait for 30 Seconds

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.