mirror of
https://github.com/jackc/pgx.git
synced 2025-05-30 11:14:05 +00:00
fixup! Cache reflection analysis in RowToStructBy...
This commit is contained in:
parent
ec98406207
commit
8f69e45a53
2
rows.go
2
rows.go
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user