Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix autoincrement for constraints
Autoincrement now is fully supported by Tarantool facilities. However, during VDBE program execution there were no information about new value from sequence, instead of new value there was a NULL. This made CHECK constraints on autoincrement fields working inappropriately. In this patch: - Next autoincrement value is computing before running constraints check and is put to mentioned registers instead of NULL, like it was before. - New opcode OP_NextAutoincValue was implemented, which calls sequence_next from Tarantool and puts new value to necessary register. Closes #2981
- Loading branch information
1 parent
2f40023
commit 68dfbd5
Showing
6 changed files
with
259 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.