I am trying to implement a transaction here Adding a cartId to rows based on certian logic
I tried many combinations and even a raw sql version but I cannot determine why I am getting a rollback I am hoping one of you can see what I am doing wrong here