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.
The UNKNOWN type, which is given to expressions that statically evaluate to NULL, can be cast to any type. Codifying all possible casts from with an UNKNOWN source type in the `castMap` is cumbersome and it is easy to accidentally omit some target types. This commit removes the UNKNOWN casts from the `castMap` and adds logic in `ValidCast` that allows UNKNOWN types to be cast to any other type in all contexts. Release note: None
- Loading branch information
Showing
1 changed file
with
10 additions
and
66 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