[MDEV-31149] Periodic 'Illegal mix of collations' for same query Created: 2023-04-28 Updated: 2024-01-03 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.11.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Christian Rishøj | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 20.04.6 on Linux 5.4.0 x86_64 |
||
| Description |
|
The query below periodically fails with "Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'like'". The error is not strange per se, but the fact that it only fails periodically boggles my mind. Could it be query plan dependent?
Table:
Environment:
|
| Comments |
| Comment by Siavosh Kasravi [ 2023-12-28 ] |
|
Can you please confirm this periodically happens on the same server (same machine, same version)? Please note that if you are connecting to the same IP address it may not necessarily mean the same machine as the servers maybe behind a load balancer. |
| Comment by Christian Rishøj [ 2024-01-03 ] |
|
Yes, it does indeed happen for the same query, client and server (same machine / version). When I retry the query 10 times, it seems to randomly work ~2 times out of 10. The other ~8 times, I get the collation error. The fact that it works sporadically made me file the bug. |