Beispiel #1
0
func (e *Evaluator) row(v *ast.RowExpr) bool {
	row := make([]types.Datum, 0, len(v.Values))
	for _, val := range v.Values {
		row = append(row, *val.GetDatum())
	}
	v.GetDatum().SetRow(row)
	return true
}
Beispiel #2
0
func (e *Evaluator) row(v *ast.RowExpr) bool {
	row := make([]interface{}, 0, len(v.Values))
	for _, val := range v.Values {
		row = append(row, val.GetValue())
	}
	v.SetValue(row)
	return true
}