Fix warning about STRICT_ALL_TABLES in mysql