Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oracle id sequence trigger does not handle manual id inserts #906

Closed
helios1138 opened this issue Jul 23, 2015 · 0 comments
Closed

oracle id sequence trigger does not handle manual id inserts #906

helios1138 opened this issue Jul 23, 2015 · 0 comments

Comments

@helios1138
Copy link
Contributor

@helios1138 helios1138 commented Jul 23, 2015

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.

@elhigu elhigu closed this in #1526 Sep 12, 2016
elhigu added a commit that referenced this issue Sep 12, 2016
* Oracle sequence trigger handle manual id inserts

* Update schema tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

1 participant
You can’t perform that action at this time.