Bug #49497 | Error 1467 (ER_AUTOINC_READ_FAILED) on inserting a negative value | ||
---|---|---|---|
Submitted: | 7 Dec 2009 10:15 | Modified: | 11 Aug 2010 21:58 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1.41 | OS: | Any |
Assigned to: | Vasil Dimov | CPU Architecture: | Any |
[7 Dec 2009 10:15]
Elena Stepanova
[28 Apr 2010 4:14]
James Day
The fix for this is in the InnoDB Plugin version 1.0.7 which was included with MySQL 5.1.46.
[22 Jul 2010 15:54]
Vasil Dimov
Sorry, it is too late to add a retrospective automatic message. The fix went into the mysql tree in this changeset from 2010-02-26: mysql-5.1$ bzr log -csvoj@sun.com-20100226090257-klzwfw40j5cxhge5 ------------------------------------------------------------ revno: 3351.5.4 revision-id: svoj@sun.com-20100226090257-klzwfw40j5cxhge5 parent: svoj@sun.com-20100226090226-rraaj0tet759yt2f committer: Sergey Vojtovich <svoj@sun.com> branch nick: mysql-5.1-bugteam timestamp: Fri 2010-02-26 13:02:57 +0400 message: Applying InnoDB snapshot Detailed revision comments: r6538 | sunny | 2010-01-30 00:43:06 +0200 (Sat, 30 Jan 2010) | 6 lines branches/5.1: Check *first_value every time against the column max value and set *first_value to next autoinc if it's > col max value. ie. not rely on what is passed in from MySQL. [49497] Error 1467 (ER_AUTOINC_READ_FAILED) on inserting a negative value rb://236
[11 Aug 2010 21:58]
John Russell
Adding to the 5.1.46 change log: InnoDB would return an error when inserting a negative value into an auto-increment column.