Hi,

does InnoDB guarantee that the values of an autoincrement column do always 
increase?
What happened to me is that a select * from my_table returns something like

id | ...

10  
11  
5     
12
13

where id is defined as  int(10) unsigned NOT NULL auto_increment
and is the primary key of the table.
The inserts corresponding to ids (10, 11, 12, 13) are done inside one 
transaction, the insert that generates id = 5, in another (concurrent) one.

Cheers
Frank



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to