WithChildren implements the sql.Expression interface.
(ctx *sql.Context, children ...sql.Expression)
| 144 | |
| 145 | // WithChildren implements the sql.Expression interface. |
| 146 | func (array *Array) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error) { |
| 147 | resultType, err := array.getTargetType(ctx, children...) |
| 148 | if err != nil { |
| 149 | return nil, err |
| 150 | } |
| 151 | return &Array{ |
| 152 | children: children, |
| 153 | coercedType: resultType, |
| 154 | }, nil |
| 155 | } |
| 156 | |
| 157 | // WithResolvedChildren implements the vitess.InjectableExpression interface. |
| 158 | func (array *Array) WithResolvedChildren(ctx context.Context, children []any) (any, error) { |
no test coverage detected