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
  • 143,130
  • 81
  • 406
  • 459
CRISHK Corporation
  • 2,948
  • 6
  • 37
  • 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
  • 143,130
  • 81
  • 406
  • 459
eisberg
  • 3,731
  • 2
  • 27
  • 38