Menu

Illegal mix of collations for operation... MariaDB

0 votes

In a database where all collations are consistent, I get the following error.

Error: The field 'Row Filter' is invalid. Illegal mix of collations for operation 'in' ...

How should I resolve this error?

in Version 1.4 by (7.6k points)

1 Answer

0 votes

dbFront uses the MySqlConnector when connecting to any MySQL, MariaDB or similar databases.

The MySqlConnector always uses utf8mb4 to send and receive strings from MySQL Server and this is not changeable. See: MySqlConnector.

If you encounter collation errors when comparing client provided values with database provided values, then it might be appropriate to add an inline collation clause to fix this issue.

before: {[vStatus]} not in ('Abandoned', 'NoInternet', 'Tried', 'Installed')

after: {[vStatus]} not in ('Abandoned' collate utf8mb4_general_ci, 'NoInternet', 'Tried', 'Installed')

Solution:

by (66.5k points)
Welcome to the dbFront Q&A site, where you can ask questions and receive answers from other members of the community.
 | Minimalist Answer Theme by Digitizor Media
 |
Powered by Question2Answer
...