Review main Merged

43187[BUGFIX] DBAL: Fix retrieving the last insert id

Morton Jonuschat CR +2 V +2 Easy +8 −1 updated 09/11/15, 09:38

Commit message

Only retrieve the last insert id if the table actually has an auto
incrementing field, otherwise trying to retrieve the last inserted
id can result in errors and transaction rollbacks.

The last inserted id is also retrieved on plain INSERT statements, not
only for INSERT statements that require a subsequent UPDATE to store
BLOB/CLOB values.

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 1