Closed OllieJones closed 3 months ago
In some older db versions, this
SELECT 12345 COLLATE utf8mb4_general_ci AS value
fails with a message saying Collation utf8mb4_general_ci is invalid for latin1
The workaround?
SELECT CAST(12345 AS CHAR) COLLATE utf8mb4_general_ci AS value
The bad versions? MariaDB 10.4 and earlier. MySQL 5.5 for sure, maybe 5.6 and earlier, 5.7 is OK.
In some older db versions, this
fails with a message saying Collation utf8mb4_general_ci is invalid for latin1
The workaround?
The bad versions? MariaDB 10.4 and earlier. MySQL 5.5 for sure, maybe 5.6 and earlier, 5.7 is OK.