Merge remote-tracking branch 'upstream/master' into feat/strict-field-mapping
This commit is contained in:
commit
323c3a0597
11 changed files with 382 additions and 59 deletions
|
|
@ -241,7 +241,10 @@ func ScanOneRowToDest(scanContext *ScanContext, rows *sql.Rows, destPtr interfac
|
|||
return fmt.Errorf("jet: failed to scan a row into destination, %w", err)
|
||||
}
|
||||
|
||||
scanContext.EnsureEveryColumnRead() // can panic
|
||||
if scanContext.rowNum == 1 && GlobalConfig.StrictScan {
|
||||
scanContext.EnsureEveryColumnRead() // can panic
|
||||
}
|
||||
|
||||
if GlobalConfig.StrictFieldMapping {
|
||||
scanContext.EnsureEveryFieldMapped() // can panic
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue