Illegal mix of collations (utf8_unicode_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation '='

Wenn ich die folgende Abfrage ausführen:

CREATE ALGORITHM = UNDEFINED VIEW d_view_galerias AS (
SELECT id, titulo, 'foto' AS tipo, '' AS embed
FROM d_galeria_fotos
)
UNION (

SELECT id, titulo, 'video' AS tipo, embed
FROM d_galeria_videos
)

Bekomme ich die Fehlermeldung:

Illegal mix of collations (utf8_unicode_ci,COERCIBLE) and (utf8_general_ci,COERCIBLE) for operation '='

"tipo" ist immer so utf8_unicode, aber die anderen Felder sind als utf8_general ... wie man einen cast, zu konvertieren?

InformationsquelleAutor user2321359 | 2013-08-20
Schreibe einen Kommentar