MySQL 9.3 Reference Manual Including MySQL NDB Cluster 9.3
The COLLATE clause has high precedence (higher than ||), so the following two expressions are equivalent:
COLLATE
||
x || y COLLATE z x || (y COLLATE z)