Jump to content

Recommended Posts

Are you saying that you expect your site to have 999999999999999999999 products. That is NOT a realistic bug. If you were to add 1,000 products every second it would take 31 Billion years to max out that number!

 

However, you never know if someone was to reset the auto-increment number. So, do you want the user to face the consequences of such an act or do you want a way to handle it gracefully? If you want to handle it gracefully you could create a function to run before creating any new product. The function could see what the highest ID int he table is. If the ID is the max allowed value then you could have a clean-up function run which will reset all the id's incrementally throughout all the tables. It would probably be a lengthy process.

Link to comment
https://forums.phpfreaks.com/topic/75307-how-to-detect-bug/#findComment-381521
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.