Skip to content

Commit

Permalink
table: update RowWithCols
Browse files Browse the repository at this point in the history
  • Loading branch information
zimulala committed Dec 17, 2015
1 parent 199258b commit d983ef5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions table/tables/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,7 @@ func (t *Table) DecodeValue(data []byte, col *column.Col) (interface{}, error) {

// RowWithCols implements table.Table RowWithCols interface.
func (t *Table) RowWithCols(retriever kv.Retriever, h int64, cols []*column.Col) ([]interface{}, error) {
// use the length of t.Cols() for alignment
v := make([]interface{}, len(t.Cols()))
v := make([]interface{}, len(cols))
for _, col := range cols {
if col.State != model.StatePublic {
return nil, errors.Errorf("Cannot use none public column - %v", cols)
Expand Down

0 comments on commit d983ef5

Please sign in to comment.