Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2017 Changes in this version + const CodeInvalid + const FlagIgnoreTruncate + const FlagTruncateAsWarning + var ErrInvalid = terror.ClassXEval.New(CodeInvalid, "invalid operation") + func ComputeArithmetic(sc *variable.StatementContext, op tipb.ExprType, left types.Datum, ...) (types.Datum, error) + func ComputeBit(sc *variable.StatementContext, op tipb.ExprType, left, right types.Datum) (types.Datum, error) + func FlagsToStatementContext(flags uint64) *variable.StatementContext + type Evaluator struct + ColIDs map[int64]int + ColVals []types.Datum + ColumnInfos []*tipb.ColumnInfo + Row map[int64]types.Datum + StatementCtx *variable.StatementContext + TimeZone *time.Location + func NewEvaluator(sc *variable.StatementContext, timeZone *time.Location) *Evaluator + func (e *Evaluator) Eval(expr *tipb.Expr) (types.Datum, error) + func (e *Evaluator) SetColumnInfos(cols []*tipb.ColumnInfo) + func (e *Evaluator) SetRowValue(handle int64, row [][]byte, relatedColIDs map[int64]int) error