forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: use correct FuncExpr when encoding sequences
Previously, when encoding sequences by swapping sequence names for IDs, we were always wrapping the sequence in a nextval func. This is incorrect, and instead we should wrap the sequence in whatever function it came in before this encoding. This patch makes this change. Release justification: bug fix for new functionality Release note (bug fix): use correct FuncExpr when encoding sequences.
- Loading branch information
1 parent
9bf97ac
commit c5df5ec
Showing
2 changed files
with
30 additions
and
15 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