MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Eval

Method Eval

pkg/sql/sem/tree/eval.go:4314–4324  ·  view source on GitHub ↗

Eval implements the TypedExpr interface.

(ctx *EvalContext)

Source from the content-addressed store, hash-verified

4312
4313// Eval implements the TypedExpr interface.
4314func (t *Tuple) Eval(ctx *EvalContext) (Datum, error) {
4315 tuple := NewDTupleWithLen(t.typ, len(t.Exprs))
4316 for i, v := range t.Exprs {
4317 d, err := v.(TypedExpr).Eval(ctx)
4318 if err != nil {
4319 return nil, err
4320 }
4321 tuple.D[i] = d
4322 }
4323 return tuple, nil
4324}
4325
4326// arrayOfType returns a fresh DArray of the input type.
4327func arrayOfType(typ *types.T) (*DArray, error) {

Callers 1

normalizeMethod · 0.95

Calls 2

NewDTupleWithLenFunction · 0.85
EvalMethod · 0.65

Tested by

no test coverage detected