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: check exception handler before applying TCO
This commit finishes the tail-call optimization fix begun by the previous commits, by preventing TCO when it would lose the reference to the calling routine's exception handler. PL/pgSQL sub-routines always maintain a reference to their parent's exception handler, so this isn't a problem for them. However, explicit (user-specified) nested routines do not track the calling routine's exception handler. There is no release note because this bug hasn't appeared in any release. Fixes cockroachdb#120916 Release note: None
- Loading branch information
1 parent
15a74f4
commit 332d347
Showing
3 changed files
with
60 additions
and
5 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