Skip to content

Commit

Permalink
update struct name
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifersp committed Aug 22, 2024
1 parent 926913a commit 57fd684
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgtype/uint32.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (Uint32Codec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPl
case Uint32Scanner:
return scanPlanBinaryUint32ToUint32Scanner{}
case TextScanner:
return scanPlanBinaryTextToUint32Scanner{}
return scanPlanBinaryUint32ToTextScanner{}
}
case TextFormatCode:
switch target.(type) {
Expand Down Expand Up @@ -284,9 +284,9 @@ func (scanPlanBinaryUint32ToUint32Scanner) Scan(src []byte, dst any) error {
return s.ScanUint32(Uint32{Uint32: n, Valid: true})
}

type scanPlanBinaryTextToUint32Scanner struct{}
type scanPlanBinaryUint32ToTextScanner struct{}

func (scanPlanBinaryTextToUint32Scanner) Scan(src []byte, dst any) error {
func (scanPlanBinaryUint32ToTextScanner) Scan(src []byte, dst any) error {
s, ok := (dst).(TextScanner)
if !ok {
return ErrScanTargetTypeChanged
Expand Down

0 comments on commit 57fd684

Please sign in to comment.