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