I presume the CONCAT is effectively a string cast. Out of curiosity, have you tried this with PostgreSQL?