[MDEV-7152] Wrong result set for WHERE a='oe' COLLATE utf8_german2_ci AND a='oe' Created: 2014-11-20 Updated: 2015-01-19 Resolved: 2015-01-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 5.5.40, 10.0.14, 10.1.1 |
| Fix Version/s: | 10.0.16 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The first SELECT query returns one row:
The second SELECT query returns two rows:
The result for the second query is wrong. EXPLAIN for the second query:
returns:
It seems the condition was simplified in a wrong way. It should not have been simplified because the two equality predicates use different collations. |