[DBAgentMySQL] Fix a problem that updates a primary key on upsert.