Page MenuHomePhabricator

Assume utf8mb4 support
ClosedPublic

Authored by epriestley on Nov 6 2014, 9:09 PM.
Tags
None
Referenced Files
F13272700: D10798.diff
Thu, May 30, 5:55 PM
F13257848: D10798.diff
Sun, May 26, 5:11 AM
F13221851: D10798.diff
Sun, May 19, 3:06 AM
F13209068: D10798.id25917.diff
Thu, May 16, 9:33 PM
F13206396: D10798.id25951.diff
Wed, May 15, 8:57 AM
F13204384: D10798.diff
Wed, May 15, 12:32 AM
F13187309: D10798.diff
Sat, May 11, 4:27 AM
F13181111: D10798.id25951.diff
Thu, May 9, 8:41 AM
Subscribers

Details

Summary

Ref T1191. This stops throwing an exception for non-BMP data when constructing queries.

  • For installs which have already adjusted, this allows emoji and other 4-byte characters to work.
  • For installs which have not adjusted yet but do have STRICT_ALL_TABLES set, MySQL will raise an error intead ("Incorrect string value...").
  • For installs which have not adjusted and also do not use STRICT_ALL_TABLES, this will silently truncate data. This is potentially a security risk. However, these installs are warned about the risk of leaving STRICT_ALL_TABLES disabled, there's no known way to exploit this issue, and they'll be auto-adjusted soon.
Test Plan

Ran locally and on secure.phabricator.com with this patch for a long time.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable