NewImplicitCast returns a new *ImplicitCast expression.
(expr sql.Expression, fromType *pgtypes.DoltgresType, toType *pgtypes.DoltgresType)
| 33 | |
| 34 | // NewImplicitCast returns a new *ImplicitCast expression. |
| 35 | func NewImplicitCast(expr sql.Expression, fromType *pgtypes.DoltgresType, toType *pgtypes.DoltgresType) *ImplicitCast { |
| 36 | toType = checkForDomainType(toType) |
| 37 | fromType = checkForDomainType(fromType) |
| 38 | return &ImplicitCast{ |
| 39 | expr: expr, |
| 40 | sourceType: fromType, |
| 41 | targetType: toType, |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | // Children implements the sql.Expression interface. |
| 46 | func (ic *ImplicitCast) Children() []sql.Expression { |
no test coverage detected