Merge pull request #547 from dragondgold/fix-row-scan-strict-scan

Fix row scanning always using strict scan
This commit is contained in:
go-jet 2026-01-21 11:48:17 +01:00 committed by GitHub
commit b5b7f9a2b6
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
} }