id on transaction conflict
hey all, using mysql (planetscale). when a transaction conflict happens over an insert with the same 'serial'
my concern is that within a transaction i want to reference the returned
here is some code to better explain maybe:
This is my first time trying to make something production ready so want to make sure all situations are covered, any help is appreciated thank you!
id i believe that mysql will resolve this by changing one of the inserts to the next available.my concern is that within a transaction i want to reference the returned
id to use as a reference. will this id match the 'new' id after the conflict has resolved, or will it reference the original?here is some code to better explain maybe:
This is my first time trying to make something production ready so want to make sure all situations are covered, any help is appreciated thank you!