fixup! Cache reflection analysis in RowToStructBy...

pull/1991/head
Zach Olstein 2024-03-24 20:38:37 -07:00 committed by Jack Christensen
parent ec98406207
commit 8f69e45a53
1 changed files with 1 additions and 1 deletions

View File

@ -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