Skip to content

Commit

Permalink
fixup! Cache reflection analysis in RowToStructBy...
Browse files Browse the repository at this point in the history
  • Loading branch information
zolstein authored and jackc committed Apr 16, 2024
1 parent ec98406 commit 8f69e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rows.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func (rs *namedStructRowScanner) ScanRow(rows CollectableRow) error {
if err != nil {
return err
}
if rs.lax && namedStructFields.missingField != "" {
if !rs.lax && namedStructFields.missingField != "" {
return fmt.Errorf("cannot find field %s in returned row", namedStructFields.missingField)
}
fields := namedStructFields.fields
Expand Down

0 comments on commit 8f69e45

Please sign in to comment.