After futher research, this is a MySQL bug that doesn't return wasNull properly. It affects the 6.0 branch of mysql connector/j. Temporary soluton can be to rollback to mysql-connector-java 5.1.41