MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewExplicitCast

Function NewExplicitCast

server/expression/explicit_cast.go:55–61  ·  view source on GitHub ↗

NewExplicitCast returns a new *ExplicitCast expression.

(expr sql.Expression, toType *pgtypes.DoltgresType)

Source from the content-addressed store, hash-verified

53
54// NewExplicitCast returns a new *ExplicitCast expression.
55func NewExplicitCast(expr sql.Expression, toType *pgtypes.DoltgresType) *ExplicitCast {
56 toType = checkForDomainType(toType)
57 return &ExplicitCast{
58 sqlChild: expr,
59 castToType: toType,
60 }
61}
62
63// Children implements the sql.Expression interface.
64func (c *ExplicitCast) Children() []sql.Expression {

Callers

nothing calls this directly

Calls 1

checkForDomainTypeFunction · 0.85

Tested by

no test coverage detected