Changes between Initial Version and Version 1 of Ticket #28272


Ignore:
Timestamp:
Jun 4, 2017, 8:29:42 PM (8 years ago)
Author:
François Freitag
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28272 – Description

    initial v1  
    2222}}}
    2323
    24 In my opinion, the sequence attached to the primary key should be manually set to the pk after inserting an object with an explicitly specified pk. The same issue can be observed for {{{bulk_create}}}, where I think the highest primary key of the batch should be used to determine the next value in the DB sequence (i.e. use setval [2]).
     24In my opinion, the sequence attached to the primary key should be manually set to the next available PK after inserting an object with an explicitly specified PK (e.g. using setval [2]). The same issue can be observed for {{{bulk_create}}}, where I think the highest primary key of the batch should be used to determine the next value in the DB sequence.
    2525
    26 This is the behavior in MariaDB [3] and SQLite [4].
     26MariaDB [3] and SQLite [4] update the next value in the sequence when autoincrement is used.
    2727
    2828Oracle might be also be affected by this issue. I was able to find this old ticket on the bug tracker[5].
Back to Top