[MDEV-9862] Illegal mix of collation, when comparing column with CASE expression Created: 2016-04-01 Updated: 2016-04-01 Resolved: 2016-04-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.5 |
| Fix Version/s: | 5.5.49 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Vladislav Vaintroub | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
An unexpected 'Illegal mix of collations' pops up when comparing result of CASE expression with a field (CASE expression returns either 'Y' or NULL). According to Bar, this To reproduce : MariaDB [test]> CREATE TABLE `datatypetestm` (CCHAR1 char(1)); MariaDB [test]> select CCHAR1 from datatypetestm where CASE CCHAR1 WHEN 'aaaa' THEN 'Y' WHEN 'aaaa' THEN 'Y' ELSE NULL END <> CCHAR1; |
| Comments |
| Comment by Alexander Barkov [ 2016-04-01 ] | |||
|
The full script which demonstrates the problem:
|