fix: row scanning always using strict scan

This commit is contained in:
Andres 2026-01-19 12:46:39 -03:00 committed by GitHub
parent 074958997a
commit ab8e282e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -229,7 +229,9 @@ func ScanOneRowToDest(scanContext *ScanContext, rows *sql.Rows, destPtr interfac
return fmt.Errorf("jet: failed to scan a row into destination, %w", err) 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
}
return nil return nil
} }