Skip to content

Commit

Permalink
feat(importno): fix nil panic
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienaury committed Oct 21, 2024
1 parent b04bbab commit 6ae71cc
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/push/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,11 @@ func pushRow(row Row, ds DataDestination, table Table, plan Plan, mode Mode, tra
}

// remove not imported values from frow
columns := table.Columns()
for i := uint(0); i < columns.Len(); i++ {
if columns.Column(i).Import() == "no" {
delete(frow, columns.Column(i).Name())
if columns := table.Columns(); columns != nil {
for i := uint(0); i < columns.Len(); i++ {
if columns.Column(i).Import() == "no" {
delete(frow, columns.Column(i).Name())
}
}
}

Expand Down

0 comments on commit 6ae71cc

Please sign in to comment.