Added error context to errorcode 1267

Affects issues:
- Close #1585
This commit is contained in:
Risto Lahtela 2020-10-06 10:33:28 +03:00
parent 8b1a803a59
commit 0fb310b68a

View File

@ -136,6 +136,7 @@ public class DBOpException extends IllegalStateException implements ExceptionWit
case 1213:
context.related("Deadlock");
break;
case 1267:
case 1366:
context.related("Incorrect character encoding in MySQL")
.whatToDo("Convert your MySQL database and tables to use uft8mb4: https://www.a2hosting.com/kb/developer-corner/mysql/convert-mysql-database-utf-8");