Allows MERGE to run inside FOREACH