NewExplicitCast returns a new *ExplicitCast expression.
(expr sql.Expression, toType *pgtypes.DoltgresType)
| 53 | |
| 54 | // NewExplicitCast returns a new *ExplicitCast expression. |
| 55 | func 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. |
| 64 | func (c *ExplicitCast) Children() []sql.Expression { |
nothing calls this directly
no test coverage detected