Skip to content

Commit

Permalink
tree: add OID->OID cast map
Browse files Browse the repository at this point in the history
This commit adds a new map that describes valid casts from OID to OID.
It introduces three cast contexts: explicit casts, assignment casts, and
implicit casts. See the comments for CastContext and castMap for
details.

This map will enable us to properly follow Postgres's casting behavior.
Most immediately, it will allow us to support assignment casts.

Future work includes moving volatility in castMap. In the longer term,
cast functions can be moved into castMap as well.

Release note: None
  • Loading branch information
mgartner committed Oct 12, 2021
1 parent 855d49c commit b68b1ba
Show file tree
Hide file tree
Showing 4 changed files with 938 additions and 0 deletions.
Loading

0 comments on commit b68b1ba

Please sign in to comment.