Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Illegal mix of collations #242

Open
kozakp-pragmile opened this issue Nov 10, 2022 · 0 comments
Open

Illegal mix of collations #242

kozakp-pragmile opened this issue Nov 10, 2022 · 0 comments

Comments

@kozakp-pragmile
Copy link

I am getting exception

ErrorMessage{errorCode=1267, sqlState='HY000', errorMessage='Illegal mix of collations (utf8mb4_bin,NONE) and (utf8mb4_general_ci,COERCIBLE) for operation '=''}
when trying to perform a query with the folowing WHERE clause
WHERE concat(column1, cast(column2 as char)) = 'some-string',

The query works when using WHERE column1 = 'some-string' or WHERE cast(column2 as char) = 'some-string'.

The query works in standard SQL client using JDBC.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant