Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> getting 'random' records that correspond to a given ID but that's for the wrong table...

That's why I use GUID instead of integers. If you get a result, it was the right column.



Good point, we do for new things, but of course when I hit it it was with an old table and was a problem.. sod's law. (Though arguably it's just harder to notice the effects of it happening with a GUID and it could have too.)




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: