mirror of https://github.com/jackc/pgx.git
fixup! Cache reflection analysis in RowToStructBy...
parent
ec98406207
commit
8f69e45a53
2
rows.go
2
rows.go
|
@ -665,7 +665,7 @@ func (rs *namedStructRowScanner) ScanRow(rows CollectableRow) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if rs.lax && namedStructFields.missingField != "" {
|
if !rs.lax && namedStructFields.missingField != "" {
|
||||||
return fmt.Errorf("cannot find field %s in returned row", namedStructFields.missingField)
|
return fmt.Errorf("cannot find field %s in returned row", namedStructFields.missingField)
|
||||||
}
|
}
|
||||||
fields := namedStructFields.fields
|
fields := namedStructFields.fields
|
||||||
|
|
Loading…
Reference in New Issue