Hi guys,
I have the strangest problem.
I have an InnoDB table that I'm doing some transactions on, but when I roll back a transaction I find it ALSO rolls back the incremented auto_increment field I have set for the id.
Everything I've read in official documentation, forums, blogs, etc says that this should NEVER happen. By design it should leave the field incremented and you should have a gap in your ids.
This is what I did:
Inserted a blank record:
id: 808065
Attempted a failed transaction on the same table.
Inserted a new blank record:
id: 808066
It's my understanding that by default the second successful insert should have been at 808067.
Server is an Ubuntu server running MySQL server 5.0.
Could there be a MySQL config setting or an InnoDB setting that I'm not clear on? Does something else need to be done besides setting the id field to primary and auto_increment?
Any help is greatly appreciated!