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

Illegal mix of collations #242

Open
Open
@kozakp-pragmile

Description

@kozakp-pragmile

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions