3 ms·
How do UUID’s help in that situation? You get no result at all instead of the wrong result?
by Aeolun 4y ago
How do UUID’s help in that situation? You get no result at all instead of the wrong result?
- marcus_holmes 4y agoyes, that. The extreme case (that I had and is the one where I was finally convinced that uuid's save me from myself) was setting admin permissions on a user. I accidentally copy/pasted their account_id instead of their user_id. If I had been using integers I would have given admin permissions to a random user and never been aware of it. But because I was using uuid's I got a nice, safe "updated 0 records" response and knew there was a problem.