NewAssignmentCast returns a new *AssignmentCast expression.
(expr sql.Expression, sourceType *pgtypes.DoltgresType, targetType *pgtypes.DoltgresType)
| 33 | |
| 34 | // NewAssignmentCast returns a new *AssignmentCast expression. |
| 35 | func 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. |
| 46 | func (ac *AssignmentCast) Children() []sql.Expression { |
no test coverage detected