Re:New UUID Formats
by Aeolun on Monday June 13, 2022 @07:43AM
(#31724058)
How do UUID’s help in that situation? You get no result at all instead of the wrong result?
[ Parent
| on HN ]
Re:New UUID Formats
by marcus_holmes on Tuesday June 14, 2022 @12:01PM
(#31741361)
yes, 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.