Eng 6396 upsert ad hoc

I think the test has covered those cases:
Line 159: {3, 1, 1} is from INSERT, {2, 1, 1} is from UPDATE, {1,1,1} is from the original tuple.