()
| 1249 | return cols |
| 1250 | } |
| 1251 | func (m *SqlSelect) ColIndexes() map[string]int { |
| 1252 | cols := make(map[string]int, len(m.Columns)) |
| 1253 | for i, col := range m.Columns { |
| 1254 | //u.Debugf("aliasing: key():%-15q As:%-15q %-15q", col.Key(), col.As, col.String()) |
| 1255 | cols[col.Key()] = i |
| 1256 | } |
| 1257 | return cols |
| 1258 | } |
| 1259 | |
| 1260 | func (m *SqlSelect) AddColumn(colArg Column) error { |
| 1261 | col := &colArg |
no test coverage detected