Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: fix overload type checking of nested case expressions
If we have a nested case expression where the inner case expression is ambiguous the AnyCollatedString type would be selected and it would leak to the execution engine causing the 'failed to parse locale ""' internal error. Instead have the overload type checker remember if it saw a AnyCollatedString type and go back and repair types if a concrete type is found in any of the other exprs. Release note (bug fix): Fix a bug with collated string type checking with nested case expressions where inner case had no explicit collated type. Epic: none Fixes: #101418 Release justification: Low risk fix for edge case SQL construct.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 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