Fix Scan's handling of type that implements RowScanner and CompositeIndexGetter - #2610
Fix Scan's handling of type that implements RowScanner and CompositeIndexGetter#2610jaltavilla wants to merge 4 commits into
Conversation
… implements row scanner interface
|
According to Claude:
can't scan into dest[0] (col: a): cannot scan text (OID 25) in text format into *pgx.mapRowScanner
panic: runtime error: index out of range [0] with length 0
|
|
I've re-implemented this to only override the use of RowScanner in the specific case that the destination is a composite and the field is known to be a composite. I also added a couple tests for cases the prior pr broke to help future contributors. |
This fixes issue #2609