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

Function NewAssignmentCast

server/expression/assignment_cast.go:35–43  ·  view source on GitHub ↗

NewAssignmentCast returns a new *AssignmentCast expression.

(expr sql.Expression, sourceType *pgtypes.DoltgresType, targetType *pgtypes.DoltgresType)

Source from the content-addressed store, hash-verified

33
34// NewAssignmentCast returns a new *AssignmentCast expression.
35func NewAssignmentCast(expr sql.Expression, sourceType *pgtypes.DoltgresType, targetType *pgtypes.DoltgresType) *AssignmentCast {
36 targetType = checkForDomainType(targetType)
37 sourceType = checkForDomainType(sourceType)
38 return &AssignmentCast{
39 expr: expr,
40 sourceType: sourceType,
41 targetType: targetType,
42 }
43}
44
45// Children implements the sql.Expression interface.
46func (ac *AssignmentCast) Children() []sql.Expression {

Callers 2

WithChildrenMethod · 0.85
WithChildrenMethod · 0.85

Calls 1

checkForDomainTypeFunction · 0.85

Tested by

no test coverage detected