Bug #87700 | Strict comparisons of UTF8MB4 Values Fail and resolve to the same 'placeholder' | ||
---|---|---|---|
Submitted: | 8 Sep 2017 5:17 | Modified: | 9 Sep 2017 20:47 |
Reporter: | Shawn Grigson | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server: Charsets | Severity: | S3 (Non-critical) |
Version: | 5.6.37 | OS: | MacOS ((Running off of Docker, latest 5.6 jessie build)) |
Assigned to: | CPU Architecture: | Any |
[8 Sep 2017 5:17]
Shawn Grigson
[8 Sep 2017 5:36]
Shawn Grigson
After further investigation, when I ran `SET NAMES utf8mb4 COLLATE utf8mb4_unicode_520_ci;` prior to the strict equality statement, it worked. This came up as part of a reference thread suggesting that collation for comparing against emojis. The problem is that a lot of libraries (mysqljs come to my) simply hardcode in the collation as the default for the charset you specify. (so utf8mb4_general_ci in that case). I would still say that this seems more like a bug than anything that should be 'expected behavior'.
[8 Sep 2017 9:04]
Ryusuke Kajiyama
Similar issue is known as "Sushi-Beer issue" https://bugs.mysql.com/bug.php?id=76553 Also, in MySQL Server Blog http://mysqlserverteam.com/sushi-beer-an-introduction-of-utf8-support-in-mysql-8-0/
[9 Sep 2017 20:47]
MySQL Verification Team
Thank you for the bug report. Duplicate of https://bugs.mysql.com/bug.php?id=76553.