forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix large UPSERTs with RETURNING
In cockroachdb#51608 we fixed a bug with pagination of UPSERTs (now it is possible to have multiple batches when performing an UPSERT of over 10k rows), and it exposed another bug in how we're handling an UPSERT with RETURNING clause - we were clearing the row container too early which would result in an index of bounds crash. This is now fixed. Release note (bug fix): Starting from v20.2.0-alpha.3 CockroachDB would crash when performing an UPSERT with RETURNING clause of more than 10k rows, and this is now fixed.
- Loading branch information
1 parent
1bffabd
commit 01e6a9a
Showing
4 changed files
with
31 additions
and
42 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
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