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

Small note about using unsigned ints: In PHP (and possibly others) they will turn into signed ints when you read them.

If you read and write them and never show them, it's probably OK, but if you have logic that checks for < 0, or the like, be aware of it.

But then again, if you have so many rows in a table that your auto_number has reached over 2 billion, you probably have other issues as well.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: