1

Query:

select *,
       (@page_path = concat(
           @page_path,
           chk_v_application_tree.alias
       )) as path
from chk_v_application_tree 

[Err] 1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_bin,NONE) for operation '='

Mark Amery
  • 127,031
  • 74
  • 384
  • 431
CRISHK Corporation
  • 2,890
  • 6
  • 36
  • 52
  • possible duplicate of [MYSQL case sensitive search for utf8_bin field](http://stackoverflow.com/questions/901066/mysql-case-sensitive-search-for-utf8-bin-field) – ajreal Nov 30 '11 at 03:31

1 Answers1

0

Try:

select *,
       (@page_path = concat(
           CONVERT(@page_path USING utf8) COLLATE utf8_bin,
           chk_v_application_tree.alias
       )) as path
from chk_v_application_tree

As you may not mix charset encoding in an CONCAT function like CONCAT(utf8_general_ci, utf8_bin).

Mark Amery
  • 127,031
  • 74
  • 384
  • 431
eisberg
  • 3,501
  • 2
  • 26
  • 38