Merge pull request #547 from dragondgold/fix-row-scan-strict-scan
Fix row scanning always using strict scan
This commit is contained in:
commit
b5b7f9a2b6
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue