Skip to content

Commit

Permalink
input csv: allow different lines to have different field count (this …
Browse files Browse the repository at this point in the history
…will definitely cause a query error, but will generate better error message)
  • Loading branch information
assafmo committed Apr 18, 2019
1 parent 55ac879 commit 93342dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ func query(w http.ResponseWriter, r *http.Request) {

reqCsvReader := csv.NewReader(r.Body)
reqCsvReader.ReuseRecord = true
reqCsvReader.FieldsPerRecord = -1

isFirstQuery := true
for {
Expand Down

0 comments on commit 93342dc

Please sign in to comment.