[MDEV-24657] Illegal mix of collation errors due to mysql.user having been converted into view Created: 2021-01-22 Updated: 2021-01-22 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
10.4+ has mysql.user view for the backward compatibility, but this compatibility is flawed.
can fail with ER_CANT_AGGREGATE_2COLLATIONS (illegal mix of collations) errors when it wouldn't happen before. For example,
Before 10.4 the query would work fine:
Apparently it happens because coercibility of is_role column in mysql.user table is 2, while in mysql.user view it's 4, same as the literal's. |