Set strict mode to false for MySQL only.