Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
oracle id sequence trigger does not handle manual id inserts #906
Currently increment ids in oracle are working using trigger and a sequence, but if you manually insert a record with an ID, the sequence is not being updated. So if I insert, say, something with ID:4 into an empty table, next insert will be with ID:2, not ID:5. I think the trigger should be changed so that it also sets the lastId in sequence as max id from inserted records.