• MySQL Build Team's avatar
    Backport into build-201102032246-5.1.52sp1 · 825823b3
    MySQL Build Team authored
    > ------------------------------------------------------------
    > revno: 3518
    > revision-id: sergey.glukhov@oracle.com-20101213114812-kaq7sh0s623128lv
    > parent: sergey.glukhov@oracle.com-20101213103926-okypkn10adeeyns8
    > committer: Sergey Glukhov <sergey.glukhov@oracle.com>
    > branch nick: mysql-5.1-bugteam
    > timestamp: Mon 2010-12-13 14:48:12 +0300
    > message:
    >   Bug#39828 : Autoinc wraps around when offset and increment > 1
    >   Auto increment value wraps when performing a bulk insert with
    >   auto_increment_increment and auto_increment_offset greater than
    >   one.
    >   The fix:
    >   If overflow happened then return MAX_ULONGLONG value as an
    >   indication of overflow and check this before storing the
    >   value into the field in update_auto_increment().
    825823b3
innodb-autoinc.result 32 KB