fix commitAddFile() for MySQL strict mode (#717)