forked from cockroachdb/cockroach
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: allow cast from a type T to T in all contexts
This commit updates `tree.ValidCast` so that it returns true when the given types are identical for any cast context. Casts from a type without modifiers (like width modifiers) to the same type have been removed from the cast map because they are no longer necessary. Release note: None
- Loading branch information
Showing
1 changed file
with
44 additions
and
49 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