buildVirtualColumnInfo saves virtual column indices and sort them in definition order
(schema *expression.Schema, columns []*model.ColumnInfo)
| 635 | |
| 636 | // buildVirtualColumnInfo saves virtual column indices and sort them in definition order |
| 637 | func buildVirtualColumnInfo(schema *expression.Schema, columns []*model.ColumnInfo) (colIndexs []int, retTypes []*types.FieldType) { |
| 638 | colIndexs = buildVirtualColumnIndex(schema, columns) |
| 639 | if len(colIndexs) > 0 { |
| 640 | retTypes = make([]*types.FieldType, len(colIndexs)) |
| 641 | for i, idx := range colIndexs { |
| 642 | retTypes[i] = schema.Columns[idx].RetType |
| 643 | } |
| 644 | } |
| 645 | return colIndexs, retTypes |
| 646 | } |
| 647 | |
| 648 | type tableResultHandler struct { |
| 649 | // If the pk is unsigned and we have KeepOrder=true and want ascending order, |
no test coverage detected