Skip to content

Commit

Permalink
perf(contrib/drivers/pgsql): improve conversion performace for slice …
Browse files Browse the repository at this point in the history
…string (#4046)
  • Loading branch information
ninjashixuan authored Dec 17, 2024
1 parent e7fdf82 commit 67a9db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/drivers/pgsql/pgsql_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (d *Driver) ConvertValueForLocal(ctx context.Context, fieldType string, fie
if err := result.Scan(fieldValue); err != nil {
return nil, err
}
return result, nil
return []string(result), nil

default:
return d.Core.ConvertValueForLocal(ctx, fieldType, fieldValue)
Expand Down

0 comments on commit 67a9db9

Please sign in to comment.