Skip to content

Commit

Permalink
fix data Mapping not enough parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
陈遇文 committed May 9, 2023
1 parent d762545 commit 3e5fdec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions read.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,11 @@ func (r *Read) exec(row int, columns []string) {
}

func (r *Read) dataMapping(columns []string) (ptr any, err error) {
realCols := make([]string, 0, len(r.metaData.headers))
realCols = append(realCols, columns...)
// fix v0.1.5 bug,do not check columns length
realCols := make([]string, len(r.metaData.headers), len(r.metaData.headers))
for j, col := range columns {
realCols[j] = col
}

ptr = r.payloadPool.Get()

Expand Down

0 comments on commit 3e5fdec

Please sign in to comment.